Update create_manufacturer_records.py

This commit is contained in:
Nabin Hait 2016-01-21 00:30:39 +05:30
parent 6811e73b53
commit e6b52bbb43

View File

@ -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()