Commit f0305cb7 authored by Jérome Perrin's avatar Jérome Perrin

Revert "officejs_support_request_ui: use accessors on ERP5 documents"

This reverts commit 5b251ce6.
parent 1e3acb66
...@@ -19,9 +19,8 @@ count_by_state = {} ...@@ -19,9 +19,8 @@ count_by_state = {}
count_by_date = {"le2": {}, "2to7": {}, "7to30": {}, "gt30": {}} count_by_date = {"le2": {}, "2to7": {}, "7to30": {}, "gt30": {}}
for sr in support_request_list: for sr in support_request_list:
sr = sr.getObject() sr_date = sr.start_date
sr_date = sr.getStartDate() sr_state = sr.getProperty("simulation_state")
sr_state = sr.getSimulationState()
if sr_state not in count_by_state: if sr_state not in count_by_state:
count_by_state[sr_state] = 0 count_by_state[sr_state] = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment