fix: Unable to import COA through importer
This commit is contained in:
parent
b179514273
commit
3b66920342
@ -485,6 +485,10 @@ def set_default_accounts(company):
|
|||||||
"default_payable_account": frappe.db.get_value(
|
"default_payable_account": frappe.db.get_value(
|
||||||
"Account", {"company": company.name, "account_type": "Payable", "is_group": 0}
|
"Account", {"company": company.name, "account_type": "Payable", "is_group": 0}
|
||||||
),
|
),
|
||||||
|
"default_provisional_account": frappe.db.get_value(
|
||||||
|
"Account",
|
||||||
|
{"company": company.name, "account_type": "Service Received But Not Billed", "is_group": 0},
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -70,9 +70,6 @@ class Company(NestedSet):
|
|||||||
|
|
||||||
self.abbr = self.abbr.strip()
|
self.abbr = self.abbr.strip()
|
||||||
|
|
||||||
# if self.get('__islocal') and len(self.abbr) > 5:
|
|
||||||
# frappe.throw(_("Abbreviation cannot have more than 5 characters"))
|
|
||||||
|
|
||||||
if not self.abbr.strip():
|
if not self.abbr.strip():
|
||||||
frappe.throw(_("Abbreviation is mandatory"))
|
frappe.throw(_("Abbreviation is mandatory"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user