You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
- from odoo import models
-
-
- class AbstractActionMixin(models.AbstractModel):
- _name = "abstract.action.mixin"
- _description = "Abstract Action Mixin"
-
- def action_open(self):
- self.ensure_one()
- action = self.env.ref(
- "github_connector_odoo.%s" % self._context.get("xml_id")
- ).read()[0]
- action["context"] = dict(self.env.context)
- action["context"].pop("group_by", None)
- action["context"]["search_default_" + self._context.get("field_name")] = self.id
- return action
|