diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-08-01 13:16:58 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-08-01 13:16:58 +0000 |
| commit | 0fc9a97d20a480a10dc5258dcc22bf5e52b48293 (patch) | |
| tree | c3cf31e93935647726b55f69da9dd085b5f5f564 /odoo/__init__.py | |
| parent | 9197c0ad23c2e0594f41894ed6d60774d8b9f1b7 (diff) | |
[REF] stock_account: _compute_average_price unit price rounding
Since the introduction of the stock valuation layer, unit_cost is
rounded in the company currency (actually it is NOT because of an ORM
bug that will be fixed later). With the test introduced at [0], fixing
that ORM bug shows we have a rounding issue (27.02 instead of 27) due to
the company currency rounding on the unit_cost. Since the logic of the
anglo saxon will probably always give some rounding issue (we always
return a price unit that will be multiply by the invoiced quantity)
recomputing a not rounded price unit by using the not rounded value with
the not rounded quantity seems a good enough compromise.
[0] 13a535a0918f6f75d8c631a465fbc9238ea954bf
closes odoo/odoo#35384
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'odoo/__init__.py')
0 files changed, 0 insertions, 0 deletions
