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.step

Compute Method: _compute_total_graph_data

View 18.0
Inputs Method Outputs
  • id
- for record in self:
-             record.graph_done = self.env["automation.record.step"].search_count(
-                 [
-                     ("configuration_step_id", "=", record.id),
-                     ("state", "=", "done"),
-                     ("is_test", "=", False),
-                 ]
-             )
-             record.graph_error = self.env["automation.record.step"].search_count(
-                 [
-                     ("configuration_step_id", "=", record.id),
-                     ("state", "in", ["expired", "rejected", "error", "cancel"]),
-                     ("is_test", "=", False),
-                 ]
-             )
  • graph_done
  • graph_error

Back to entity