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)
to_reset.trg_date_id = False
for record in (self - to_reset):
            record.trg_date_id = record._get_trigger_specific_field()

Back to entity