Odoo18-Base/addons/base_automation/models/ir_actions_server.py
2025-03-10 11:12:23 +07:00

13 lines
345 B
Python

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