-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
[16.0][IMP] account_invoice_fixed_discount: avoid replace in xml #1593
[16.0][IMP] account_invoice_fixed_discount: avoid replace in xml #1593
Conversation
@PieterPaulussen could you review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
03d9ea4
to
f837b86
Compare
@JordiBForgeFlow could you review and merge this? |
This PR has the |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at d481144. Thanks a lot for contributing to OCA. ❤️ |
I am currently facing a problem with to many decimal numbers in a standard Odoo installation on the invoice PDF.

I assume this causes by this code section:

I also evaluated that adding this options will solve the issue in standard Odoo:
t-options='{"widget": "float", "decimal_precision": "Discount"}'
https://github.com/odoo/odoo/blob/5911f056f9ed45a82a694782f82aa3170d0b74ac/addons/account/views/report_invoice.xml#L126C49-L126C100
But this module is using replace, which would bring back the problem. Therefore I would like to change the xml not using "replace".