fix(stock): validate warehouse accounts when used

This commit is contained in:
Mihir Kandoi
2026-08-11 16:33:53 +05:30
parent c8614d42ae
commit 0dfa54f812
6 changed files with 147 additions and 14 deletions

View File

@@ -410,6 +410,7 @@ class Company(NestedSet):
)
warehouse.flags.ignore_permissions = True
warehouse.flags.ignore_mandatory = True
warehouse.flags.ignore_inventory_account_validation = True
warehouse.insert()
if wh_detail["is_group"]: