[patch] [minor] fix sle against cancelled stock entry for production

This commit is contained in:
Nabin Hait
2013-08-20 17:40:26 +05:30
parent 4aeee45530
commit 7bd850a133
4 changed files with 26 additions and 12 deletions

View File

@@ -162,5 +162,6 @@ def make_stock_entry(production_order_id, purpose):
else:
stock_entry.doc.from_warehouse = production_order.doc.wip_warehouse
stock_entry.doc.to_warehouse = production_order.doc.fg_warehouse
stock_entry.run_method("get_items")
return [d.fields for d in stock_entry.doclist]