Skip to content
Health
52/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 68 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_ch_qr_bill_transaction_id

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
/report/qrcode, /report/qrcode/<path:value> ReportController.report_qrcode public http ALL

Models touched 3

New fields (4)
  • l10n_ch_currency_name Char
    help="The name of this invoice's currency" readonly=True related='currency_id.name' string='Currency Name'
  • l10n_ch_qrr Char
    compute='_compute_l10n_ch_qrr' help='The reference QRR associated with this invoice' store=True
  • l10n_ch_qrr_sent Boolean
    default=False help=('Boolean value telling whether or not the QRR corresponding to this invoice has already been printed or sent by mail.')
  • l10n_ch_qrr_spaced Char
    compute='_compute_l10n_ch_qrr_spaced' help='Reference QRR split in blocks of 5 characters (right-justified),to generate QR-bill report.'
Public methods (6)
  • 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_iban Char
    help='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'
Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)

Loading…