Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Automation Rules

Entity: base.automation

Compute Method: _compute_trigger_field_ids

View 19.0 View 20.0
Inputs Method Outputs
  • trigger
- for automation in self:
-             if automation.trigger == "on_create_or_write":
-                 automation._onchange_domain()
-                 continue
-             automation._onchange_trigger()
+ for rec in self.filtered(lambda a: a.trigger != "on_create_or_write"):
+             rec._onchange_trigger()

Back to entity