File tree 2 files changed +6
-2
lines changed
product_pricelist_alternative
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
{
5
5
"name" : "Product Pricelist Alternative" ,
6
- "version" : "18.0.1.0 .0" ,
6
+ "version" : "18.0.1.1 .0" ,
7
7
"development_status" : "Beta" ,
8
8
"category" : "Product" ,
9
9
"summary" : "Calculate product price based on alternative pricelists" ,
10
10
"author" : "Camptocamp, Odoo Community Association (OCA)" ,
11
11
"website" : "https://github.com/OCA/product-attribute" ,
12
12
"license" : "AGPL-3" ,
13
13
"depends" : [
14
+ "sale" ,
14
15
"product" ,
15
16
],
16
17
"data" : [
Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ def _compute_price_rule(
67
67
compute_price = True ,
68
68
** kwargs ,
69
69
):
70
+
71
+ if self .env .context .get ("force_price_recomputation" , False ):
72
+ compute_price = True
73
+
70
74
res = super ()._compute_price_rule (
71
75
products ,
72
76
quantity ,
@@ -76,7 +80,6 @@ def _compute_price_rule(
76
80
compute_price = compute_price ,
77
81
** kwargs ,
78
82
)
79
-
80
83
# In some contexts we want to ignore alternative pricelists
81
84
# and return the original price
82
85
if self .env .context .get ("skip_alternative_pricelist" , False ):
You can’t perform that action at this time.
0 commit comments