-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] sell_only_by_packaging: support negative rounding when converting packaging qty #3248
base: 16.0
Are you sure you want to change the base?
[16.0][IMP] sell_only_by_packaging: support negative rounding when converting packaging qty #3248
Conversation
This PR has the |
float_compare( | ||
qty, | ||
0.0, | ||
precision_rounding=0.001, |
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.
Why this value and not another ?
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.
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.
Hi @rousseldenis , I just based on the original one (positive rounding, here). Do you have any suggestion for this rounding?
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.
Yes, of course, using the product rounding.
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.
Thank @rousseldenis for your suggestions, a new commit has been added
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.
LGTM
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
@rousseldenis The merge process could not be finalized, because command
|
/ocabot rebase |
Congratulations, PR rebased to 16.0. |
93569c4
to
f8637f8
Compare
Currently, on upstream, It's possible to support creating return orders when filling negative quantities in product_uom_qty on Sale Order lines.
This PR will help to round down the product quantities to the nearest multiple of the packaging quantity in that case.