update fixtures and install.py
This commit is contained in:
parent
772fcb86c2
commit
beb873a9b1
1 changed files with 1 additions and 0 deletions
|
|
@ -1727,6 +1727,7 @@ def create_companies():
|
||||||
# Idempotency check
|
# Idempotency check
|
||||||
if frappe.db.exists("Company", {"name": company["company_name"]}):
|
if frappe.db.exists("Company", {"name": company["company_name"]}):
|
||||||
continue
|
continue
|
||||||
|
print(f"❌ Company '{company['company_name']}' does not exist. Creating...")
|
||||||
doc: Company = frappe.get_doc({
|
doc: Company = frappe.get_doc({
|
||||||
"doctype": "Company",
|
"doctype": "Company",
|
||||||
"company_name": company["company_name"],
|
"company_name": company["company_name"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue