Update company.py
This commit is contained in:
parent
c7b92b73a6
commit
b9ca91a832
@ -102,9 +102,6 @@ class Company(Document):
|
|||||||
{"warehouse_name": _("Finished Goods"), "is_group": 0}]:
|
{"warehouse_name": _("Finished Goods"), "is_group": 0}]:
|
||||||
|
|
||||||
if not frappe.db.exists("Warehouse", "{0} - {1}".format(wh_detail["warehouse_name"], self.abbr)):
|
if not frappe.db.exists("Warehouse", "{0} - {1}".format(wh_detail["warehouse_name"], self.abbr)):
|
||||||
stock_group = frappe.db.get_value("Account", {"account_type": "Stock",
|
|
||||||
"is_group": 1, "company": self.name})
|
|
||||||
if stock_group:
|
|
||||||
warehouse = frappe.get_doc({
|
warehouse = frappe.get_doc({
|
||||||
"doctype":"Warehouse",
|
"doctype":"Warehouse",
|
||||||
"warehouse_name": wh_detail["warehouse_name"],
|
"warehouse_name": wh_detail["warehouse_name"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user