Switzerland - QR-bill

l10n_ch_qr_bill
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/10.0/l10n_ch_qr_bill
VERSION
VERSION 1.2.3
CATEGORY
CATEGORYLocalization
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, GitHub, Akim Juillerat, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Telmo Santos
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - report
    - base
    - web
    - base_setup
    - web_kanban
    - account
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

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 xpath Inherits account.invoice_form
view_partner_bank_form l10n_ch_qr.res.partner.bank.form res.partner.bank field Inherits base.view_partner_bank_form
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)
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/8.0/l10n_ch_qr_bill
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, OCA Transbot, oca-travis, Weblate, Alfredo Zamora, simonev
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:28
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - report
    - base
    - web
    - account
    - base_setup
    - web_kanban
    - product
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
assets_common_qr assets_common_qr ir.ui.view qweb Inherits report.minimal_layout
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 xpath Inherits account.invoice_form
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' readonly=True store=True string='QRR ref'
  • 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 (4)
  • build_swiss_code_url(self)
    @api.multi
  • has_qrr(self)
    Check if this invoice has a valid QRR reference (for Switzerland)
  • print_ch_qr_bill(self, *args)
    @api.multi
    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 (0)

No new fields.

Public methods (0)

No public methods.