mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Update company.py
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user