summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-03-29 14:23:56 +0200
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-03-29 15:36:55 +0200
commit15c3cbab55fa0b842537177824908278ea1183ee (patch)
tree90d5faf0e4e214f21958caba8eb5bc63053ac8c7 /addons/web/static/src/js/views/basic
parent8a906f80b4120ca96afcc58331e4ef8733be28c6 (diff)
[FIX] stock_landed_costs: digits precision
- Set the number of digits of 'Product Unit of Measure' to 1 - Create a stockable product: UOM: Dozens Purchase UOM: Units - Buy 17 Units, validate the picking - Create a landed cost: Amount: 100 Split Method: By Quantity - Compute The Valuation Adjustment line contains contains a line with a quantity equal to 1.4, leading to a line of 98.60. It is impossible to validate the landed cost because of the inconsistency. The method `get_valuation_lines` retrieves the data from the `stock.move` and copies the following values to the `stock.valuation.adjustment.lines`: - `product_qty` > `quantity` - `weight` > `weight` - `volume` > `volume` Therefore, we must make sure that these fields are using the same digits precision. We adapt the precisions accordingly. opw-1817783
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions