chore: use frappe.in_test

This commit is contained in:
Sagar Vora
2025-06-17 21:28:21 +05:30
parent 153a70cd70
commit 7a482a6998
31 changed files with 48 additions and 48 deletions

View File

@@ -131,7 +131,7 @@ class SubcontractingReceipt(SubcontractingController):
super().validate()
if self.is_new() and self.get("_action") == "save" and not frappe.flags.in_test:
if self.is_new() and self.get("_action") == "save" and not frappe.in_test:
self.get_scrap_items()
self.set_missing_values()