mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
chore: use frappe.in_test
This commit is contained in:
@@ -229,7 +229,7 @@ class StockController(AccountsController):
|
||||
return
|
||||
|
||||
# To handle test cases
|
||||
if frappe.flags.in_test and frappe.flags.use_serial_and_batch_fields:
|
||||
if frappe.in_test and frappe.flags.use_serial_and_batch_fields:
|
||||
return
|
||||
|
||||
if not table_name:
|
||||
|
||||
Reference in New Issue
Block a user