Skip to content

Commit

Permalink
Merge pull request #745 from grindtildeath/17.0-fix-no_amount_qr
Browse files Browse the repository at this point in the history
[17.0][FIX] l10n_ch_qr_no_amount: Do not encode amount in QR code
  • Loading branch information
TDu authored Nov 29, 2024
2 parents 0464513 + 49ab08b commit fb02e51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion l10n_ch_qr_no_amount/report/swissqr_no_amount_report.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from odoo import models
from odoo import api, models


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 fb02e51

Please sign in to comment.