Update create_manufacturer_records.py
This commit is contained in:
parent
6811e73b53
commit
e6b52bbb43
@ -6,7 +6,7 @@ import frappe
|
||||
from frappe.utils import cstr
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype("Manufacturer")
|
||||
frappe.reload_doc("stock", "doctype", "manufacturer")
|
||||
frappe.reload_doctype("Item")
|
||||
|
||||
for d in frappe.db.sql("""select distinct manufacturer from tabItem
|
||||
@ -16,4 +16,4 @@ def execute():
|
||||
man = frappe.new_doc("Manufacturer")
|
||||
man.short_name = manufacturer_name
|
||||
man.full_name = manufacturer_name
|
||||
man.save()
|
||||
man.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user