[Fix] Pull operation on production order, when making from sales order

This commit is contained in:
Rohit Waghchaure 2017-02-28 17:12:18 +05:30
parent 8312f1cd64
commit 2c2ce8c557

View File

@ -687,6 +687,8 @@ def make_production_orders(items, sales_order, company, project=None):
project=project,
fg_warehouse=i['warehouse']
)).insert()
production_order.set_production_order_operations()
production_order.save()
out.append(production_order)
return [p.name for p in out]