Browse Source

[IMP] server_action_navigate: black, isort, prettier

14.0
Ashish Hirpara 3 years ago
parent
commit
1206b533ff
  1. 2
      server_action_navigate/__manifest__.py
  2. 3
      server_action_navigate/models/ir_actions_server_navigate_line.py
  3. 1
      setup/server_action_navigate/odoo/addons/server_action_navigate
  4. 6
      setup/server_action_navigate/setup.py

2
server_action_navigate/__manifest__.py

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

3
server_action_navigate/models/ir_actions_server_navigate_line.py

@ -31,7 +31,8 @@ class IrActionsServerNavigateLine(models.Model):
def _onchange_field_id(self):
# check out the docstring of this in odoo/models.py
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([]))
model = lines[-1:].field_id.relation or self.action_id.model_id.model

1
setup/server_action_navigate/odoo/addons/server_action_navigate

@ -0,0 +1 @@
../../../../server_action_navigate

6
setup/server_action_navigate/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save