mirror of
https://bitbucket.org/presik/trytonpsk-production_accounting.git
synced 2023-12-14 05:22:54 +01:00
minor fix
This commit is contained in:
parent
ce429e43a8
commit
6a17940f2f
1 changed files with 4 additions and 4 deletions
|
@ -542,17 +542,17 @@ class ProcessProductionAsync(Wizard):
|
|||
producibles = {}
|
||||
|
||||
for line in lines:
|
||||
product = line.product
|
||||
product_id = line.product.id
|
||||
try:
|
||||
producibles[product.id]['quantity'].append(line.quantity)
|
||||
producibles[product_id]['quantity'].append(line.quantity)
|
||||
except:
|
||||
outputs = BOMOutput.search([
|
||||
('product', '=', product.id)
|
||||
('product', '=', product_id)
|
||||
])
|
||||
if not outputs:
|
||||
continue
|
||||
output = outputs[0]
|
||||
producibles[product] = {
|
||||
producibles[product_id] = {
|
||||
'quantity': [line.quantity],
|
||||
'bom': output.bom,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue