diff --git a/erpnext/patches/v8_0/move_account_head_from_account_to_warehouse_for_inventory.py b/erpnext/patches/v8_0/move_account_head_from_account_to_warehouse_for_inventory.py index 09fbd76523..b59d81831f 100644 --- a/erpnext/patches/v8_0/move_account_head_from_account_to_warehouse_for_inventory.py +++ b/erpnext/patches/v8_0/move_account_head_from_account_to_warehouse_for_inventory.py @@ -12,4 +12,4 @@ def execute(): set account = (select name from `tabAccount` where account_type = 'Stock' and - warehouse = `tabWarehouse`.name and is_group = 0)""") \ No newline at end of file + warehouse = `tabWarehouse`.name and is_group = 0 limit 1)""") \ No newline at end of file