[IMP] server_action_navigate: black, isort, prettier

This commit is contained in:
Ashish Hirpara
2022-03-17 17:58:07 +05:30
committed by Sylvain LE GAL
parent e58bde6dfe
commit f621f447ed
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
"author": "GRAP, " "Odoo Community Association (OCA)", "author": "GRAP, " "Odoo Community Association (OCA)",
"summary": "Navigate between any items of any Odoo Models", "summary": "Navigate between any items of any Odoo Models",
"category": "Tools", "category": "Tools",
"website": "https://github.com/OCA/server-ux", "website": "https://github.com/OCA/server-backend",
"license": "AGPL-3", "license": "AGPL-3",
"depends": ["base"], "depends": ["base"],
"maintainers": ["legalsylvain"], "maintainers": ["legalsylvain"],

View File

@@ -31,7 +31,8 @@ class IrActionsServerNavigateLine(models.Model):
def _onchange_field_id(self): def _onchange_field_id(self):
# check out the docstring of this in odoo/models.py # check out the docstring of this in odoo/models.py
lines = self.action_id.resolve_2many_commands( lines = self.action_id.resolve_2many_commands(
"navigate_line_ids", self.env.context.get("navigate_line_ids", []), "navigate_line_ids",
self.env.context.get("navigate_line_ids", []),
) )
lines = sum(map(self.new, lines), self.browse([])) lines = sum(map(self.new, lines), self.browse([]))
model = lines[-1:].field_id.relation or self.action_id.model_id.model model = lines[-1:].field_id.relation or self.action_id.model_id.model