minor fixes

This commit is contained in:
Anand Doshi
2012-11-30 19:45:51 +05:30
parent d8b85073cd
commit 9021ef75d1
3 changed files with 3 additions and 6 deletions

View File

@@ -141,7 +141,7 @@ class DocType:
'is_purchase_item' :'Is Purchase Item',
'is_pro_applicable' :'Is Pro Applicable'}
for d in fl:
if cstr(self.doc.fields[d]) != 'Yes':
if cstr(self.doc.fields.get(d)) != 'Yes':
self.check_for_active_boms(check = fl[d])
self.check_ref_rate_detail()
self.fill_customer_code()