Repository
odoo/odoo · module folder
Module version
1.0
Category
Sales
Folder size
1.21 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 04:59:46
Authors
Maintainers
None
Committers
Olivier Dony, Raphael Collet, Christophe Simonis, Martin Trigaux, Odoo Translation Bot, Denis Ledoux, Simon Lejeune, Jérome Maes, Julien Legros, Richard Mathot, qdp-odoo, Adrian Torres
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
calendar, crm, hr_contract, mgmtsystem_audit
Description
This module allows to implement action rules for any object.
============================================================

Use automated actions to automatically trigger actions for various screens.

**Example:** A lead created by a specific user may be automatically set to a specific
sales team, or an opportunity which still has status pending after 14 days might
trigger an automatic reminder email.
    

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_base_action_rule_form base.action.rule.form base.action.rule form New
view_base_action_rule_search base.action.rule.search base.action.rule search New
view_base_action_rule_tree base.action.rule.tree base.action.rule tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (19)
  • act_followers Many2many → res.partner
    string='Add Followers' args: 'res.partner'
  • act_user_id Many2one → res.users
    string='Set Responsible' args: 'res.users'
  • active Boolean
    default=True help='When unchecked, the rule is hidden and will not be executed.'
  • filter_domain Char
    help='If present, this condition must be satisfied before executing the action rule.' string='Domain'
  • filter_id Many2one → ir.filters
    domain="[('model_id', '=', model_id.model)]" help='If present, this condition must be satisfied before executing the action rule.' ondelete='restrict' string='Filter' args: 'ir.filters'
  • filter_pre_domain Char
    help='If present, this condition must be satisfied before the update of the record.' string='Before Update Domain'
  • filter_pre_id Many2one → ir.filters
    domain="[('model_id', '=', model_id.model)]" help='If present, this condition must be satisfied before the update of the record.' ondelete='restrict' string='Before Update Filter' args: 'ir.filters'
  • kind Selection
    required=True string='When to Run' args: [('on_create', 'On Creation'), ('on_write', 'On Update'), ('on_create_or_write', 'On Creation & Update'), ('on_unlink', 'On Deletion'), ('on_change', 'Based on Form Modification'), ('on_time', 'Based on Timed Condition')]
  • last_run Datetime
    copy=False readonly=True
  • model Char
    readonly=True related='model_id.model'
  • model_id Many2one → ir.model
    domain=[('transient', '=', False)] required=True string='Related Document Model' args: 'ir.model'
  • name Char
    required=True string='Rule Name'
  • on_change_fields Char
    help='Comma-separated list of field names that triggers the onchange.' string='On Change Fields Trigger'
  • sequence Integer
    help='Gives the sequence order when displaying a list of rules.'
  • server_action_ids Many2many → ir.actions.server
    domain="[('model_id', '=', model_id)]" help='Examples: email reminders, call object service, etc.' string='Server Actions' args: 'ir.actions.server'
  • trg_date_calendar_id Many2one → resource.calendar
    help='When calculating a day-based timed condition, it is possible to use a calendar to compute the date based on working days.' string='Use Calendar' args: 'resource.calendar'
  • trg_date_id Many2one → ir.model.fields
    domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]" help='When should the condition be triggered.\n If present, will be checked by the scheduler. If empty, will be checked at creation and update.' string='Trigger Date' args: 'ir.model.fields'
  • trg_date_range Integer
    help='Delay after the trigger date.\n You can put a negative number if you need a delay before the\n trigger date, like sending a reminder 15 minutes before a meeting.' string='Delay after trigger date'
  • trg_date_range_type Selection
    default='day' string='Delay type' args: [('minutes', 'Minutes'), ('hour', 'Hours'), ('day', 'Days'), ('month', 'Months')]
Public methods (7)
  • create(self, vals)
    @api.model
  • onchange_filter_id(self)
    @api.onchange('filter_id')
  • onchange_filter_pre_id(self)
    @api.onchange('filter_pre_id')
  • onchange_kind(self)
    @api.onchange('kind')
  • onchange_model_id(self)
    @api.onchange('model_id')
  • unlink(self)
    @api.multi
  • write(self, vals)
    @api.multi

Loading…

Loading…

Loading…

Loading…