ir_actions_server.py 345 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import fields, models
  4. class ServerAction(models.Model):
  5. _inherit = "ir.actions.server"
  6. usage = fields.Selection(selection_add=[
  7. ('base_automation', 'Automated Action')
  8. ], ondelete={'base_automation': 'cascade'})