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] sale_advance_payment: rounding of amount_residual #2985

Open
AurelijaNorvaisaite opened this issue Feb 29, 2024 · 0 comments
Open

[16.0] sale_advance_payment: rounding of amount_residual #2985

AurelijaNorvaisaite opened this issue Feb 29, 2024 · 0 comments
Labels

Comments

@AurelijaNorvaisaite
Copy link

AurelijaNorvaisaite commented Feb 29, 2024

Module

sale_advance_payment

Describe the bug

As odoo does not have rounding for field amount_total, in some cases amount_residual only looks like 0, but it is not. And while filtering by this field, you get:
Screenshot from 2024-02-29 15-52-34
amount_residual is:
Screenshot from 2024-02-29 15-54-47

This issue was noticed while migrating from v10, but it also happens with new orders in v16.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. It happens when unit price is similar to this:
    Screenshot from 2024-02-29 16-34-53

Expected behavior
It should be 0

Additional context
Fix: add digits on field amount_residual as digits="Product Price"

Also, in some cases (with custom, oca and odoo modules combined), tests fail. If should be @tagged("post_install", "-at_install") added on tests.

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

No branches or pull requests

1 participant