Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Manufacturing

Entity: mrp.workcenter

Compute Method: _compute_kanban_dashboard_graph

Inputs Method Outputs
  • id
week_range, date_start, date_stop = self._get_week_range_and_first_last_days()
load_data = self._get_workcenter_load_per_week(week_range, date_start, date_stop)
load_graph_data = self._prepare_graph_data(load_data, week_range)
for wc in self:
            wc.kanban_dashboard_graph = json.dumps(load_graph_data[wc.id])

Back to entity