[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user