diff --git a/base_multi_store/__manifest__.py b/base_multi_store/__manifest__.py index fabae971..3db54c91 100644 --- a/base_multi_store/__manifest__.py +++ b/base_multi_store/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name': 'Multi Stores Management', - 'version': "17.0.1.0.0", + 'version': "18.0.1.0.0", 'category': 'Accounting', 'sequence': 14, 'summary': '', @@ -40,7 +40,7 @@ 'demo': [ 'demo/res_store_demo.xml', ], - 'installable': False, + 'installable': True, 'auto_install': False, 'application': True, } diff --git a/base_multi_store/models/res_store.py b/base_multi_store/models/res_store.py index f884908e..eb0c78a9 100644 --- a/base_multi_store/models/res_store.py +++ b/base_multi_store/models/res_store.py @@ -48,7 +48,7 @@ class ResStore(models.Model): @api.constrains('parent_id') def _check_parent_id(self): for rec in self: - if not rec._check_recursion(): + if not rec._has_cycle(): raise ValidationError( _('Error! You can not create recursive stores.')) diff --git a/base_multi_store/views/res_store_view.xml b/base_multi_store/views/res_store_view.xml index b6e9cebb..1644075a 100644 --- a/base_multi_store/views/res_store_view.xml +++ b/base_multi_store/views/res_store_view.xml @@ -2,14 +2,14 @@ - res.store.tree + res.store.list res.store - + - + @@ -48,7 +48,7 @@ Stores ir.actions.act_window res.store - tree,form + list,form