Skip to content

Commit

Permalink
[FIX] l10n_ch_qr_no_amount: Do not encode amount in QR code
Browse files Browse the repository at this point in the history
As the context key was not set, the QR code did still include amount
information although it is not printed on the QR bill.
  • Loading branch information
grindtildeath committed Nov 27, 2024
1 parent 0464513 commit d347d45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_ch_qr_no_amount/report/swissqr_no_amount_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ class ReportSwissNoAmountQR(models.AbstractModel):
_name = "report.l10n_ch_qr_no_amount.qr_no_amount_report_main"
_inherit = "report.l10n_ch.qr_report_main"
_description = "QR-No-Amount-bill"

@api.model
def _get_report_values(self, docids, data=None):
self = self.with_context(_no_amount_qr_code=True)
return super()._get_report_values(docids, data)

0 comments on commit d347d45

Please sign in to comment.