diff --git a/manufacturing/doctype/bom/bom.py b/manufacturing/doctype/bom/bom.py index 00523c55de0..94f3d20ec38 100644 --- a/manufacturing/doctype/bom/bom.py +++ b/manufacturing/doctype/bom/bom.py @@ -95,12 +95,12 @@ class DocType: def get_bom_material_detail(self, args=None): """ Get raw material details like uom, desc and rate""" - if not args: args = webnotes.form_dict.get('args') - import json - args = json.loads(args) - + + import json + args = json.loads(args) + item = self.get_item_det(args['item_code']) self.validate_rm_item(item)