mirror of
https://github.com/NaN-tic/trytond-product_cost_plan.git
synced 2023-12-14 03:03:11 +01:00
parent
b2c468647e
commit
176b59c834
1 changed files with 2 additions and 1 deletions
3
plan.py
3
plan.py
|
@ -435,7 +435,8 @@ class Plan(DeactivableMixin, ModelSQL, ModelView):
|
||||||
input_.party_stock = line.party_stock
|
input_.party_stock = line.party_stock
|
||||||
parent_line = line.parent
|
parent_line = line.parent
|
||||||
while parent_line:
|
while parent_line:
|
||||||
input_.quantity *= parent_line.quantity
|
input_.quantity = input_.uom.round(input_.quantity *
|
||||||
|
parent_line.quantity)
|
||||||
parent_line = parent_line.parent
|
parent_line = parent_line.parent
|
||||||
return input_
|
return input_
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue