Add missing _parent_ on a fields depends.

This commit is contained in:
Juanjo Garcia 2019-11-07 10:38:30 +01:00
parent 9b1856c70d
commit 933b062c05
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class OperationTracking(ModelSQL, ModelView):
def search_company(cls, name, clause):
return [('operation.production.company',) + tuple(clause[1:])]
@fields.depends('operation')
@fields.depends('_parent_operation.id', 'operation')
def on_change_with_uom(self):
if self.operation and self.operation.work_center:
return self.operation.work_center.uom.id