Use set for depends.

This commit is contained in:
Albert Cervera i Areny 2022-05-03 18:18:07 +02:00
parent cf5de9d364
commit de2f972066
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class AnalyticLine(metaclass=PoolMeta):
else:
field.states['readonly'] = _STATES['readonly']
if 'state' not in field.depends:
field.depends.append('state')
field.depends.add('state')
company_domain = ('account.company', '=', Eval('internal_company'))
if not cls.move_line.domain: