From 26d6b92bcb6f880d3772ed2fd53c4a9604502040 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 22 Jul 2013 11:28:50 +0530 Subject: [PATCH] [minor] [fix] trigger on raw material item i bom --- manufacturing/doctype/bom/bom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)