add methods on on_change_process

This commit is contained in:
?ngel ?lvarez 2019-10-04 10:03:39 +02:00
parent a744fb1762
commit 74c51624d0
1 changed files with 2 additions and 1 deletions

View File

@ -352,7 +352,8 @@ class Production(metaclass=PoolMeta):
})
cls.route.depends.append('process')
@fields.depends(*(BOM_CHANGES + ['process', 'route', 'operations']))
@fields.depends(*(BOM_CHANGES + ['process', 'route', 'operations']),
methods=['on_change_route', 'explode_bom'])
def on_change_process(self):
if self.process:
self.bom = self.process.bom