Use the instance context to get carrier prices
issue10666 review358661002
This commit is contained in:
1 parent
33293be25f
commit
7efdd4c05b
1 file changed
+4
-1
@@ -85,7 +85,10 @@ class Sale(metaclass=PoolMeta):
|
||||
states={
|
||||
'readonly': Eval('state') != 'draft',
|
||||
},
|
||||
depends=['state', 'available_carriers'])
|
||||
context={
|
||||
'company': Eval('company', -1),
|
||||
},
|
||||
depends=['state', 'available_carriers', 'company'])
|
||||
available_carriers = fields.Function(
|
||||
fields.Many2Many('carrier', None, None, 'Available Carriers'),
|
||||
'on_change_with_available_carriers')
|
||||
|
||||
Reference in new issue
Block a user