2016-05-24 07:49:00 +05:30
|
|
|
import frappe
|
|
|
|
from frappe import _
|
|
|
|
|
|
|
|
def execute():
|
2016-06-06 14:22:37 +05:30
|
|
|
for warehouse in frappe.db.sql_list("""select name from tabWarehouse
|
|
|
|
order by company asc, name asc"""):
|
|
|
|
warehouse = frappe.get_doc("Warehouse", warehouse)
|
|
|
|
warehouse.is_group = "No"
|
|
|
|
warehouse.parent_warehouse = ""
|
|
|
|
warehouse.save(ignore_permissions=True)
|