fix: Don't prompt for Quality Inspection on Return Documents.

This commit is contained in:
marination
2020-06-11 16:39:03 +05:30
parent 95695f0628
commit a965773c97

View File

@@ -19,7 +19,8 @@ class QualityInspectionNotSubmittedError(frappe.ValidationError): pass
class StockController(AccountsController):
def validate(self):
super(StockController, self).validate()
self.validate_inspection()
if not self.is_return:
self.validate_inspection()
self.validate_serialized_batch()
self.validate_customer_provided_item()