Fix states of analytic account fields
Set the same state of the real one2many and use a custom one for required. issue3012 review1151003
This commit is contained in:
+3
-1
@@ -35,7 +35,9 @@ class InvoiceLine:
|
||||
['analytic_accounts'])['analytic_accounts']
|
||||
|
||||
fields.update(AnalyticAccount.analytic_accounts_fields_get(
|
||||
analytic_accounts_field, fields_names))
|
||||
analytic_accounts_field, fields_names,
|
||||
states=cls.analytic_accounts.states,
|
||||
required_states=Eval('type') == 'line'))
|
||||
return fields
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user