mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-27 02:28:30 +00:00
fix: move make_dimension_in_accounting_doctypes from after_insert to on_update
(cherry picked from commit ee067e6015)
This commit is contained in:
@@ -82,7 +82,7 @@ class AccountingDimension(Document):
|
|||||||
else:
|
else:
|
||||||
frappe.throw(_("Company {0} is added more than once").format(frappe.bold(default.company)))
|
frappe.throw(_("Company {0} is added more than once").format(frappe.bold(default.company)))
|
||||||
|
|
||||||
def after_insert(self):
|
def on_update(self):
|
||||||
if frappe.in_test:
|
if frappe.in_test:
|
||||||
make_dimension_in_accounting_doctypes(doc=self)
|
make_dimension_in_accounting_doctypes(doc=self)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user