fix tests

This commit is contained in:
Àngel Àlvarez 2021-10-19 08:33:53 +02:00
parent 6231a6153b
commit 2eadf39cb2
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ class Production(metaclass=PoolMeta):
return [s.id for s in
self.production_template.cost_distribution_templates]
@fields.depends('cost_distribution_template',
'_parent_cost_distribution_template.cost_distribution_templates')
@fields.depends('production_template')
def on_change_with_cost_distribution_templates(self, name=None):
if self.production_template:
return [s.id for s in self.production_template.outputs]