Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: AutoVacuum Mail Message and Attachment
Entity: vacuum.rule
Compute Method: _compute_model_id
| Inputs | Method | Outputs |
|---|---|---|
|
+ for rule in self: + model_id = False + model = False + + if rule.model_ids and len(rule.model_ids) == 1: + model_id = rule.model_ids.id + model = rule.model_id.model + + rule.model_id = model_id + rule.model = model |
|
