mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
Update create_address_doc_from_address_field_in_company.py
This commit is contained in:
@@ -9,7 +9,8 @@ def execute():
|
|||||||
# so here is the patch for moving the address details in the address doc
|
# so here is the patch for moving the address details in the address doc
|
||||||
company_list = []
|
company_list = []
|
||||||
if 'address' in frappe.db.get_table_columns('Company'):
|
if 'address' in frappe.db.get_table_columns('Company'):
|
||||||
company_list = frappe.db.sql('''select name, address from `tabCompany` where address is not null''', as_dict=1)
|
company_list = frappe.db.sql('''select name, address from `tabCompany`
|
||||||
|
where address is not null and address != ""''', as_dict=1)
|
||||||
|
|
||||||
for company in company_list:
|
for company in company_list:
|
||||||
add_list = company.address.split(" ")
|
add_list = company.address.split(" ")
|
||||||
|
|||||||
Reference in New Issue
Block a user