Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Mgmtsystem Objective
Entity: mgmtsystem.indicator.value
Compute Method: _compute_value_state
| Inputs | Method | Outputs |
|---|---|---|
|
- for record in self: - if ( - not record.indicator_id.has_max_target - and not record.indicator_id.has_min_target - ): - record.value_state = "no_target" - elif ( - record.indicator_id.has_min_target - and record.value < record.indicator_id.min_target_value - ): - record.value_state = "below_target" - elif ( - record.indicator_id.has_max_target - and record.value > record.indicator_id.max_target_value - ): - record.value_state = "above_target" - else: - record.value_state = "on_target" |
|
