Merge pull request #37464 from frappe/mergify/bp/version-14-hotfix/pr-37436

refactor: for non-repost fields, don't validate (backport #37436)
This commit is contained in:
ruthra kumar
2023-10-12 10:51:42 +05:30
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -546,6 +546,7 @@ class PurchaseInvoice(BuyingController):
]
child_tables = {"items": ("expense_account",), "taxes": ("account_head",)}
self.needs_repost = self.check_if_fields_updated(fields_to_check, child_tables)
if self.needs_repost:
self.validate_for_repost()
self.db_set("repost_required", self.needs_repost)

View File

@@ -548,6 +548,7 @@ class SalesInvoice(SellingController):
"taxes": ("account_head",),
}
self.needs_repost = self.check_if_fields_updated(fields_to_check, child_tables)
if self.needs_repost:
self.validate_for_repost()
self.db_set("repost_required", self.needs_repost)