Skip to content

Commit

Permalink
style: fix odoo_addons.py linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pexers authored Feb 12, 2024
1 parent 68fa95e commit 8b60511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pylint_odoo/checkers/odoo_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b60511

Please sign in to comment.