refactor: move Inventory Dimension mandatory check from field-level to server-side (#56451)

* refactor: move Inventory Dimension mandatory check from field-level to server-side

* refactor: split large function

* fix: greptile issue
This commit is contained in:
rohitwaghchaure
2026-06-25 20:10:09 +05:30
committed by GitHub
parent a00874fa95
commit 6dad1b1ae6
13 changed files with 279 additions and 52 deletions

View File

@@ -100,6 +100,9 @@ class AssetCapitalization(StockController):
self.set_asset_values()
self.calculate_totals()
self.set_title()
# Asset Capitalization overrides validate() without calling super(), so the shared
# mandatory inventory dimension check must be invoked explicitly here.
self.validate_inventory_dimension_mandatory()
def on_update(self):
if self.stock_items: