Merge pull request #24038 from Anurag810/bom-fix
fix: keyerror 'sourced_by_supplier'
This commit is contained in:
commit
0fb05d1ba4
@ -169,8 +169,8 @@ class BOM(WebsiteGenerator):
|
||||
'qty' : args.get("qty") or args.get("stock_qty") or 1,
|
||||
'stock_qty' : args.get("qty") or args.get("stock_qty") or 1,
|
||||
'base_rate' : flt(rate) * (flt(self.conversion_rate) or 1),
|
||||
'include_item_in_manufacturing': cint(args['transfer_for_manufacture']) or 0,
|
||||
'sourced_by_supplier' : args['sourced_by_supplier'] or 0
|
||||
'include_item_in_manufacturing': cint(args.get('transfer_for_manufacture')),
|
||||
'sourced_by_supplier' : args.get('sourced_by_supplier', 0)
|
||||
}
|
||||
|
||||
return ret_item
|
||||
|
Loading…
x
Reference in New Issue
Block a user