summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-06-14 11:26:14 +0000
committerNans Lefebvre <len@odoo.com>2019-06-14 11:26:16 +0000
commitc6ae7eea039df929ae340d87609a103783fcf726 (patch)
treee433ffcc49f1e3463dc212644651cfdf520a495a /addons/web/static/src/js/fields/basic_fields.js
parenta5a4b154ee4e4d83f99b35b8899ad406dbee6b12 (diff)
[FIX] stock: do not update moves when writing quantities lower than UoM precision
Suppose product P has UoM U with rounding R, and the stock move has quantity Q. Edit the quantity done to be Q + e, with e << R. By the semantic of the UoM rounding, this should mean that no change has been done. However no such check was done, so a message was posted in chatter, of the form: The done move line has been corrected. P: Quantity : 1000.0 -> 1000.0000000000001 opw 2006831 closes odoo/odoo#34124 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions