Merge pull request #16675 from deepeshgarg007/purchase-fix

fix: Purchase order item description fix
This commit is contained in:
Nabin Hait 2019-02-15 14:50:38 +05:30 committed by GitHub
commit c45962e3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"],