sales_order to work_order item desc fix

This commit is contained in:
Himanshu Warekar 2019-03-06 18:44:04 +05:30
parent 29c46bb311
commit 783331c645

View File

@ -388,6 +388,7 @@ class SalesOrder(SellingController):
items.append(dict(
name= i.name,
item_code= i.item_code,
description= i.description,
bom = bom,
warehouse = i.warehouse,
pending_qty = pending_qty,
@ -398,6 +399,7 @@ class SalesOrder(SellingController):
items.append(dict(
name= i.name,
item_code= i.item_code,
description= i.description,
bom = '',
warehouse = i.warehouse,
pending_qty = pending_qty,
@ -901,7 +903,8 @@ def make_work_orders(items, sales_order, company, project=None):
sales_order=sales_order,
sales_order_item=i['sales_order_item'],
project=project,
fg_warehouse=i['warehouse']
fg_warehouse=i['warehouse'],
description=i['description']
)).insert()
work_order.set_work_order_operations()
work_order.save()