diff options
| author | Denis Ledoux <dle@odoo.com> | 2017-03-02 12:40:45 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2017-03-02 12:40:45 +0100 |
| commit | 28ea1bcb5a5e5f9349b6c03310504c3bfd2abd0a (patch) | |
| tree | f5940886ceb775cab65c8c6b84942f503f13d013 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 5f9f4f4d9dbb8222a894548e11f43c6ea7c2c0d0 (diff) | |
[FIX] product_visible_discount: recursive show discount
If a pricelist PL1 set with the discount policy
`Show discount in the sale order` was based on another
pricelist PL2 with the same discount policy,
the discount applied by the second pricelist PL2
was set directly in the price, rather to be displayed
as a discount.
e.g.
PL 1: 10% on all products, show discount
PL 2: 15% on all prices of the PL1 pricelist, show discount
The discount displayed on the sales order should be
100 − (100 × (1−0,15) × (1−0,10)) = 23.5%
And the unit price of the product must remain the initial
price of the product, not the discounted price.
opw-709708
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
