commit | 8111705f82de11550e74df8ecf6d0d04ba51d40d | [log] [tgz] |
---|---|---|
author | Zarrar <zarrar65@gmail.com> | Fri Jul 06 18:24:55 2018 +0530 |
committer | GitHub <noreply@github.com> | Fri Jul 06 18:24:55 2018 +0530 |
tree | 5d01f60a43a9bae39b6fd4db1fc319aa76273065 | |
parent | c8c17ff5cfe41d87c0180806578e934763fb1b83 [diff] | |
parent | 1aeca1d349a88df9fd2fcedc25b862cdcfd4c014 [diff] |
Merge pull request #14833 from Zlash65/min-ac-fix [Minor] Change field name in Accounts utils
diff --git a/erpnext/patches/v11_0/move_item_defaults_to_child_table_for_multicompany.py b/erpnext/patches/v11_0/move_item_defaults_to_child_table_for_multicompany.py index 2b6a5cb..01f84a0 100644 --- a/erpnext/patches/v11_0/move_item_defaults_to_child_table_for_multicompany.py +++ b/erpnext/patches/v11_0/move_item_defaults_to_child_table_for_multicompany.py
@@ -16,7 +16,9 @@ frappe.reload_doc('stock', 'doctype', 'item_default') frappe.reload_doc('stock', 'doctype', 'item') - + + if frappe.db.a_row_exists('Item Default'): return + companies = frappe.get_all("Company") if len(companies) == 1: try: