Fix bug introduced in previous commit.
This commit is contained in:
parent
082542c0ce
commit
5ab55d1173
|
@ -240,7 +240,7 @@ class BOMMixin(metaclass=PoolMeta):
|
|||
Step = pool.get('production.process.step')
|
||||
for values in vlist:
|
||||
if not values.get('bom') and values.get('step'):
|
||||
values['unit'] = Step(values['step']).process.bom.id
|
||||
values['bom'] = Step(values['step']).process.bom.id
|
||||
return super(BOMMixin, cls).create(vlist)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue