summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-05-28 09:54:44 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-05-28 11:38:55 +0000
commitbc3ee30504a37c2eb22df9f24547d90c35e15a68 (patch)
tree733d48d01367aaf6242b013f3490efbb1224e262 /addons/web/static/tests/fields/basic_fields_tests.js
parent04b2b9314354b9e009214db0a4ecc83096ac6fea (diff)
[FIX] sale: discount in pricelist for negative price
Having : - a pricelist with 10% of discount for all the products. - the discount policy in the pricelist set to : "Show public price & discount to the customer" - a product with negative price (ex : -$125) - add the product in a SO with the 10% pricelist Before this commit, the unit price was the price with the discount already applied: -$112.5, and not the original price as expected; The subtotal price was $101,25 (the discount is applied twice) which is wrong. Now, the unit price is -$112.5 as expected, in Odoo surcharge are always included in the display price. opw-1986582 closes odoo/odoo#33717 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions