fix: Purchase order item description fix

This commit is contained in:
deepeshgarg007 2019-02-14 18:08:37 +05:30
parent 4902f7b2a0
commit 867ca63750

View File

@ -456,7 +456,7 @@ def make_rm_stock_entry(purchase_order, rm_items):
items_dict = { items_dict = {
rm_item_code: { rm_item_code: {
"item_name": rm_item_data["item_name"], "item_name": rm_item_data["item_name"],
"description": item_wh[rm_item_code].get('description'), "description": item_wh.get(rm_item_code, {}).get('description', ""),
'qty': rm_item_data["qty"], 'qty': rm_item_data["qty"],
'from_warehouse': rm_item_data["warehouse"], 'from_warehouse': rm_item_data["warehouse"],
'stock_uom': rm_item_data["stock_uom"], 'stock_uom': rm_item_data["stock_uom"],