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_on_change_field_ids

Inputs Method Outputs
to_reset = self.filtered(lambda a: a.trigger != 'on_change')
to_reset.on_change_field_ids = False
for automation in (self - to_reset):
            automation.on_change_field_ids |= automation._get_filter_domain_fields()

Back to entity