Files
odoo_source/addons/stock/wizard
Djamel Touati daaa255f04 [FIX] stock: use precision_rounding instead of digits with float_is_zero
Steps to reproduce the bug:
- Create a storable product “P1”
    - UoM: gram

- Create an internal picking with 0.01g of P1
- Validate the picking
- Create a return and try to validate it

Problem:
A UserError is triggered: “Please specify at least one non-zero quantity.”

When creating a return, we check if the quantity is not zero using the
“float_is_zero” function, but we mistakenly use rounding as
precision_digits.

opw-3862142"

closes odoo/odoo#162389

Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2024-04-22 10:12:52 +00:00
..