Merge pull request #54318 from frappe/mergify/bp/version-16-hotfix/pr-54172

fix: move make_dimension_in_accounting_doctypes from after_insert to on_update (backport #54172)
This commit is contained in:
ruthra kumar
2026-04-16 11:29:50 +05:30
committed by GitHub

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: