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

[16.0][IMP] account_invoice_fixed_discount: avoid replace in xml #1593

Merged

Conversation

CRogos
Copy link
Contributor

@CRogos CRogos commented Nov 3, 2023

I am currently facing a problem with to many decimal numbers in a standard Odoo installation on the invoice PDF.
image

I assume this causes by this code section:
image

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".

@CRogos
Copy link
Contributor Author

CRogos commented Nov 3, 2023

@PieterPaulussen could you review?

Copy link
Contributor

@lucuswolfius lucuswolfius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM

Copy link

@MohamedOsman7 MohamedOsman7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM

@CRogos CRogos force-pushed the 16.0-imp-account_invoice_fixed_discount branch from 03d9ea4 to f837b86 Compare March 25, 2024 20:50
@CRogos
Copy link
Contributor Author

CRogos commented Mar 25, 2024

@JordiBForgeFlow could you review and merge this?

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@JordiBForgeFlow
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1593-by-JordiBForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bc7b6aa into OCA:16.0 Apr 4, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at d481144. Thanks a lot for contributing to OCA. ❤️

@CRogos CRogos deleted the 16.0-imp-account_invoice_fixed_discount branch April 4, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants