minor fix in item type validation
This commit is contained in:
parent
ae02209b6a
commit
0bef91c241
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user