mirror of
https://github.com/NaN-tic/trytond-stock_distribution_in.git
synced 2023-12-14 06:03:03 +01:00
Doesn't finalize the movements of the distribution and
those of the production at the same time. #036901
This commit is contained in:
parent
93b7c7d18f
commit
e3559a0619
1 changed files with 0 additions and 5 deletions
|
@ -377,7 +377,6 @@ class Distribution(Workflow, ModelSQL, ModelView):
|
|||
else:
|
||||
Move.do(to_do)
|
||||
|
||||
to_do = []
|
||||
# Once individual moves have been assigned, we can safely run
|
||||
# assign_try
|
||||
for production in productions:
|
||||
|
@ -386,10 +385,6 @@ class Distribution(Workflow, ModelSQL, ModelView):
|
|||
# productions are assigned
|
||||
# TODO: That should probably be fixed in core
|
||||
Production.assign_try([production])
|
||||
for input_ in production.inputs:
|
||||
if input_.state == 'assigned':
|
||||
to_do.append(input_)
|
||||
Move.do(to_do)
|
||||
|
||||
Purchase.process(Purchase.browse(purchase_ids))
|
||||
|
||||
|
|
Loading…
Reference in a new issue