fix tests
This commit is contained in:
parent
6231a6153b
commit
2eadf39cb2
|
@ -213,8 +213,7 @@ class Production(metaclass=PoolMeta):
|
||||||
return [s.id for s in
|
return [s.id for s in
|
||||||
self.production_template.cost_distribution_templates]
|
self.production_template.cost_distribution_templates]
|
||||||
|
|
||||||
@fields.depends('cost_distribution_template',
|
@fields.depends('production_template')
|
||||||
'_parent_cost_distribution_template.cost_distribution_templates')
|
|
||||||
def on_change_with_cost_distribution_templates(self, name=None):
|
def on_change_with_cost_distribution_templates(self, name=None):
|
||||||
if self.production_template:
|
if self.production_template:
|
||||||
return [s.id for s in self.production_template.outputs]
|
return [s.id for s in self.production_template.outputs]
|
||||||
|
|
Loading…
Reference in New Issue