Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Automation Oca
Entity: automation.configuration
Compute Method: _compute_click_count
| Inputs | Method | Outputs |
|---|---|---|
|
- data = self.env["link.tracker.click"].read_group( - [("automation_configuration_id", "in", self.ids)], - [], - ["automation_configuration_id"], - lazy=False, - ) - mapped_data = {d["automation_configuration_id"][0]: d["__count"] for d in data} - for record in self: - record.click_count = mapped_data.get(record.id, 0) |
|
