Add price_list to product context
issue6407 review32221002
This commit is contained in:
1 parent
b1e6538629
commit
b616d79922
1 file changed
+2
@@ -49,6 +49,8 @@ class SaleLine:
|
||||
cls.quantity.on_change.add('_parent_sale.price_list')
|
||||
cls.unit.on_change.add('_parent_sale.price_list')
|
||||
cls.product.on_change.add('_parent_sale.price_list')
|
||||
cls.product.context['price_list'] = Eval(
|
||||
'_parent_sale', {}).get('price_list')
|
||||
|
||||
def _get_context_sale_price(self):
|
||||
context = super(SaleLine, self)._get_context_sale_price()
|
||||
|
||||
Reference in new issue
Block a user