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)