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_trg_date_id

Inputs Method Outputs
to_reset = self.filtered(lambda a: a.trigger not in TIME_TRIGGERS or len(a.trigger_field_ids) != 1)
to_reset.trg_date_id = False
for record in (self - to_reset):
            record.trg_date_id = record.trigger_field_ids

Back to entity