Merge pull request #58040 from mihir-kandoi/backport-58036-version-16-hotfix

fix(stock): validate warehouse accounts when used (backport #58036)
This commit is contained in:
Mihir Kandoi
2026-08-11 18:56:16 +05:30
committed by GitHub
6 changed files with 189 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"]: