Skip to content
Snippets Groups Projects
Commit 144761f0 authored by Touati Djamel (otd)'s avatar Touati Djamel (otd)
Browse files

[FIX] product: fix contained quantity decimal precision


Steps to reproduce the bug:
- Activate packaging in inventory configurations
- set the product UOM digits to more than 2 decimals
- Create a storable product:
    - Go to inventory tab > Packaging > Add a line
    - Change the contained quantity to a value with more than 2 decimal places

Problem:
It will round it to 2 decimal places regardless of the set digits.
Because the formatFloat function does not receive the digits in parameter, so it uses 2 as default value

Problem:

opw-2723068

closes odoo/odoo#83368

X-original-commit: 28f87fa6
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
parent 7bb051da
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment