diff options
| author | William Henrotin <whe@odoo.com> | 2021-03-10 12:40:06 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2021-03-11 15:52:03 +0000 |
| commit | bca282b241051cab917816106b8576e54fe1edc6 (patch) | |
| tree | f4683fe79c43a1aa44f0634862d52223a8ebbac5 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | df0381466ec3d94cc667702841c31a2dfd4af06a (diff) | |
[FIX] stock_account: don't update unit cost
Commit f6b019fcfdd35a693e8af43ae38d10e31e96284a aims to fix the rounding
errors on AVCO valuated product when those exit stock. The issue was we
fixed the value and the unit_cost as it is rounded in the curruncy
precision. This is first wrong then useless.
The wrong part : in case the stock is empty and we make an outgoing
move, self.value = 0 so the unit_cost will be overridden to 0 while it
should stay at the standard price.
The useless part is that the unit_cost will be rerounded right after the
update to be written in database.
opw : 2380529
closes odoo/odoo#67703
X-original-commit: c2074b8c9ebf907f32a72ca6a5fadb4cd242a164
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
