From 8b605111315c6aee566f034347ea7224dc26835a Mon Sep 17 00:00:00 2001 From: Pedro Rodrigues Date: Mon, 12 Feb 2024 14:15:05 +0000 Subject: [PATCH] style: fix odoo_addons.py linting --- src/pylint_odoo/checkers/odoo_addons.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pylint_odoo/checkers/odoo_addons.py b/src/pylint_odoo/checkers/odoo_addons.py index ac2c7a34..b042928d 100644 --- a/src/pylint_odoo/checkers/odoo_addons.py +++ b/src/pylint_odoo/checkers/odoo_addons.py @@ -898,7 +898,9 @@ def visit_call(self, node): method_name = ( argument.value.value if isinstance(argument.value, nodes.Const) - else argument.value.name if isinstance(argument.value, nodes.Name) else None + else argument.value.name + if isinstance(argument.value, nodes.Name) + else None ) if method_name and self.class_odoo_models: self.odoo_computes.add(method_name)