summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-12-03 14:28:53 +0000
committerVictor Feyens <vfe@odoo.com>2019-12-03 14:28:53 +0000
commite7fba2e8a1bfb0d37c132f0c3b8726663493bb34 (patch)
treeb81ec1905d58c4f04abd8d35216432a1ec805f04 /doc/reference/javascript_reference.rst
parent5d70e17c1778cdd0feae7a7f1e9032f2bca487a8 (diff)
[FIX] product: correctly pass pricelist arguments to recursive calls.
When computing the price of a product through a pricelist item, if the item was based on anotherp pricelist, the dates and uom weren't given to the subsequent method call. As the majority of the calls to those pricelist methods put all their arguments in the context, it wasn't noticed until now. Functional example: Pricelist A: Rule A1 : 10% discount on Pricelist B, from day 3 to day 6. Pricelist B: Rule B1: 5% discount on Sales price, from day 3 to day 6, Rule B2: 10% discount, from day 7 to day 9. If today was day 8, the call to pricelist(A)._compute_price_rule(day=5) would use rules A1 and B2, but should have used rules A1 and B1. closes odoo/odoo#41295 X-original-commit: df9b113805ed28f274711bb4ba0dd9a2610e5035 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions