diff --git a/brand/__manifest__.py b/brand/__manifest__.py index 62f77b0eb..c0e37a593 100644 --- a/brand/__manifest__.py +++ b/brand/__manifest__.py @@ -7,7 +7,7 @@ This is a base addon for brand modules. It adds the brand object and its menu and define an abstract model to be inherited from branded objects""", - "version": "17.0.1.1.1", + "version": "18.0.1.0.0", "license": "AGPL-3", "author": "Odoo Community Association (OCA), ACSONE SA/NV", "website": "https://github.com/OCA/brand", diff --git a/brand/models/res_brand_mixin.py b/brand/models/res_brand_mixin.py index f476a0df4..bffc3308f 100644 --- a/brand/models/res_brand_mixin.py +++ b/brand/models/res_brand_mixin.py @@ -54,7 +54,7 @@ def _get_view(self, view_id=None, view_type="form", **options): """set visibility and requirement rules""" arch, view = super()._get_view(view_id, view_type, **options) if self.env["res.brand"].check_access_rights("read", raise_exception=False): - if view.type in ["form", "tree"]: + if view.type in ["form", "list"]: brand_node = next( iter( arch.xpath( diff --git a/brand/views/res_brand.xml b/brand/views/res_brand.xml index f6afb0043..72172261b 100644 --- a/brand/views/res_brand.xml +++ b/brand/views/res_brand.xml @@ -120,19 +120,15 @@ - +
-