Switzerland - QR-bill
l10n_ch_qr_bill · OCA/l10n-switzerland
Health
52/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 68 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis
3 migration notes
3 models
5 views
1 HTTP endpoint
Migration considerations
AccountInvoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceqrr_invoice_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcel10n_ch_swissqr_template— Migrating to 15.0: QWeb `t-raw` is deprecated: use `t-out`; for intended HTML, sanitize it at its source, since `Markup` alone does not sanitize. migration-view-t-raw · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_common_qr |
assets_common_qr | ir.ui.view | qweb | Inherits report.assets_common |
l10n_ch_swissqr_template |
l10n_ch_swissqr_template | ir.ui.view | qweb | New |
qr_report_main |
qr_report_main | ir.ui.view | qweb | New |
qrr_invoice_form |
l10n_ch.account.invoice.form | account.invoice | form | Inherits account.invoice_form |
view_partner_bank_form |
l10n_ch_qr.res.partner.bank.form | res.partner.bank | form | Inherits base.view_partner_bank_form |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/report/qrcode, /report/qrcode/<path:value> |
ReportController.report_qrcode |
public | http | ALL |
Models touched 3
New fields (4)
-
l10n_ch_currency_nameCharhelp="The name of this invoice's currency"readonly=Truerelated='currency_id.name'string='Currency Name' -
l10n_ch_qrrCharcompute='_compute_l10n_ch_qrr'help='The reference QRR associated with this invoice'store=True -
l10n_ch_qrr_sentBooleandefault=Falsehelp=('Boolean value telling whether or not the QRR corresponding to this invoice has already been printed or sent by mail.') -
l10n_ch_qrr_spacedCharcompute='_compute_l10n_ch_qrr_spaced'help='Reference QRR split in blocks of 5 characters (right-justified),to generate QR-bill report.'
-
action_invoice_open(self) -
build_swiss_code_url(self)@api.multi -
can_generate_qr_bill(self, returned_errors=None)Returns True if the invoice can be used to generate a QR-bill. -
has_qrr(self)Check if this invoice has a valid QRR reference (for Switzerland) -
print_ch_qr_bill(self)Triggered by the 'Print QR-bill' button. -
validate_swiss_code_arguments(self)
New fields (0)
No new fields.
Public methods (1)-
qrcode(self, value, width=600, height=100, bar_border=4)@api.model
New fields (1)
-
l10n_ch_qr_ibanCharhelp='Put the QR-IBAN here for your own bank accounts. That way, you can still use the main IBAN in the Account Number while you will see the QR-IBAN for the barcode.'string='QR-IBAN'
-
create(self, vals)@api.model -
write(self, vals)
Loading…