[FIX] stock: check multiwarehouse when archive

Before this commit, the method who check if the user is in
multiwarehouse wasn't call when a warehouse is archived/unarchived.

closes odoo/odoo#62615

X-original-commit: 1ca34276e7684927d8628df9aa592fad7c1a5871
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
svs-odoo
2020-11-30 13:50:29 +00:00
parent bdff0f6d28
commit 1e9553a250
+3
View File
@@ -245,6 +245,9 @@ class Warehouse(models.Model):
('active', '=', True)
])
to_disable_route_ids.toggle_active()
if 'active' in vals:
self._check_multiwarehouse_group()
return res
def unlink(self):