mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 02:26:33 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user