Merge pull request #33371 from deepeshgarg007/coa_import_srbnb
fix: Unable to import COA through importer
This commit is contained in:
commit
2a4eec245a
@ -485,6 +485,10 @@ def set_default_accounts(company):
|
||||
"default_payable_account": frappe.db.get_value(
|
||||
"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()
|
||||
|
||||
# if self.get('__islocal') and len(self.abbr) > 5:
|
||||
# frappe.throw(_("Abbreviation cannot have more than 5 characters"))
|
||||
|
||||
if not self.abbr.strip():
|
||||
frappe.throw(_("Abbreviation is mandatory"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user