From 0b942856e0afb6ed9e48b73a694005d5ddd4c16f Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 1 May 2024 19:39:14 +0200 Subject: [PATCH] [FIX] brand: Pre-commit fixes --- brand/models/res_brand_mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brand/models/res_brand_mixin.py b/brand/models/res_brand_mixin.py index bfcbaa72f..f476a0df4 100644 --- a/brand/models/res_brand_mixin.py +++ b/brand/models/res_brand_mixin.py @@ -52,14 +52,14 @@ def _onchange_brand_id(self): def _get_view(self, view_id=None, view_type="form", **options): """set visibility and requirement rules""" - print("_get_view") 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"]: brand_node = next( iter( arch.xpath( - '//field[@name="brand_id"][not(ancestor::*[@widget="one2many" or @widget="many2many"])]' + '//field[@name="brand_id"][not(ancestor::*' + '[@widget="one2many" or @widget="many2many"])]' ) ), None,