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_range_data

Inputs Method Outputs
to_reset = self.filtered(lambda a: a.trigger not in TIME_TRIGGERS)
to_reset.trg_date_range = False
to_reset.trg_date_range_type = False
(self - to_reset).filtered(lambda a: not a.trg_date_range_type).trg_date_range_type = 'hour'

Back to entity