commit | c8c17ff5cfe41d87c0180806578e934763fb1b83 | [log] [tgz] |
---|---|---|
author | Shreya Shah <shreyashah115@gmail.com> | Fri Jul 06 18:07:28 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Fri Jul 06 18:07:28 2018 +0530 |
tree | 03cf45447bff393ff834c21960413e73e41eb516 | |
parent | 17705f932d3440dc4f0a06d80302aefeaa3dc96d [diff] |
Return if Item Defaults exist (#14834)
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: