fix: move make_dimension_in_accounting_doctypes from after_insert to on_update

This commit is contained in:
Shllokkk
2026-04-09 16:27:54 +05:30
parent b0e3fa3979
commit ee067e6015

View File

@@ -82,7 +82,7 @@ class AccountingDimension(Document):
else:
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:
make_dimension_in_accounting_doctypes(doc=self)
else: