Merge pull request #58039 from mihir-kandoi/backport-58036-version-15-hotfix

fix(stock): validate warehouse accounts when used (backport #58036)
This commit is contained in:
Mihir Kandoi
2026-08-11 19:15:29 +05:30
committed by GitHub
6 changed files with 184 additions and 19 deletions

View File

@@ -346,6 +346,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"]: