Fix bug introduced in previous commit.

This commit is contained in:
Albert Cervera i Areny 2023-09-14 01:27:21 +02:00
parent 082542c0ce
commit 5ab55d1173
1 changed files with 1 additions and 1 deletions

View File

@ -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)