Add missing depends sale_state in cost_price

This commit is contained in:
Sergi Almacellas Abellana 2016-07-01 14:00:15 +02:00
parent d5614f167f
commit bc486922ef
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ class SaleLine:
states={
'invisible': Eval('type') != 'line',
'readonly': ~Eval('sale_state').in_(['draft', 'quotation']),
}, depends=['type'])
},
depends=['type', 'sale_state'])
margin = fields.Function(fields.Numeric('Margin',
digits=(16, Eval('_parent_sale', {}).get('currency_digits', 2)),
states={