diff options
| author | Nicolás Mac Rouillon <nmr@adhoc.com.ar> | 2020-01-16 18:01:47 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-05-11 14:17:06 +0000 |
| commit | 1311b0a0966906d354cb084ba5374c3814583fa2 (patch) | |
| tree | 9e308082d22662daff44ea17ba52e358f2b13ffd /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 34413f706d1d91fc8f2125bf2577beab029e8538 (diff) | |
[FIX] sale: use correct currency for reverse pricelist price computation
When the discount of a sales order is computed, based on the pricelist,
the pricelist price computation is reversed, to find the base price on which
the discount was applied.
The currency considered as the base price currency was potentially wrong in
some cases (multi-currency environment, different currency between cost and sales prices,
...).
This commit ensures the right currency is used.
closes odoo/odoo#51045
Forward-port-of: #50913
Forward-port-of: #50811
X-original-commit: b39228a505151c669876f858941748fa9146279a
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Co-authored-by: Victor Feyens <vfe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
