minor fix in item type validation

This commit is contained in:
Nabin Hait 2018-06-18 16:33:48 +05:30
parent ae02209b6a
commit 0bef91c241

View File

@ -459,6 +459,7 @@ class BuyingController(StockController):
def validate_items(self):
# validate items to see if they have is_purchase_item or is_subcontracted_item enabled
if self.doctype=="Material Request": return
if hasattr(self, "is_subcontracted") and self.is_subcontracted == 'Yes':
validate_item_type(self, "is_sub_contracted_item", "subcontracted")