Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_ar_tax: print payment reports without secondary currency #1046

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

jue-adhoc
Copy link
Contributor

@jue-adhoc jue-adhoc commented Feb 6, 2025

Before this PR, we were receiving the following traceback when trying to print the report of a payment that has no secondary currency set:
Traceback (most recent call last):
[..]
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_qweb.py", line 601, in _render
result = ''.join(rendering)
File "<1147>", line 84, in template_1147
File "<1147>", line 66, in template_1147_content
File "<1147>", line 54, in template_1147_t_call_0
File "<5377>", line 1690, in template_5377
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
ZeroDivisionError: float division by zero
Template: l10n_ar_tax.report_payment_receipt_document
Path: /t/t/table[1]/tbody/t[1]/tr/td[3]/span
Node:

@roboadhoc
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants