Skip to content

Commit

Permalink
[FIX] Demand planning use selection values for revision types
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Feb 27, 2025
1 parent d60a618 commit 51c4632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crm_compassion/models/demand_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def process_weekly_demand(self):
)
if last_week_demand:
revision_obj = self.env["demand.weekly.revision"]
for type_tuple in revision_obj.get_revision_types():
type_selection_values = revision_obj._fields["type"].selection
for type_tuple in type_selection_values:
type_tuple = type_tuple[0]
if type_tuple == "web":
demand = last_week_demand.number_children_website
Expand Down

0 comments on commit 51c4632

Please sign in to comment.