mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
chore: use frappe.in_test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user