Commit c8aee3ed authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_project: use translated properties for RequirementDocument_getProjectCoverageList

Project title
Requirement comment and title
parent 6eefe579
...@@ -58,8 +58,8 @@ for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_ind ...@@ -58,8 +58,8 @@ for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_ind
if not requirement_related_list:\n if not requirement_related_list:\n
if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n
result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n
\'requirement_title\': r.getTitle(),\n \'requirement_title\': r.getTranslatedTitle(),\n
\'requirement_comment\': r.getComment(),\n \'requirement_comment\': r.getTranslatedComment(),\n
\'repeat_index\' : 0,\n \'repeat_index\' : 0,\n
\'repeat_count\' : 1,\n \'repeat_count\' : 1,\n
\'project_reference\': \'Not covered\',\n \'project_reference\': \'Not covered\',\n
...@@ -69,12 +69,12 @@ for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_ind ...@@ -69,12 +69,12 @@ for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_ind
i = 0\n i = 0\n
for p in requirement_related_list:\n for p in requirement_related_list:\n
result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n
\'requirement_title\': r.getTitle(),\n \'requirement_title\': r.getTranslatedTitle(),\n
\'requirement_comment\': r.getComment(),\n \'requirement_comment\': r.getTranslatedComment(),\n
\'repeat_index\' : i,\n \'repeat_index\' : i,\n
\'repeat_count\' : requirement_related_count,\n \'repeat_count\' : requirement_related_count,\n
\'project_reference\': p.Project_getDefaultReference(),\n \'project_reference\': p.Project_getDefaultReference(),\n
\'project_title\': p.getTitle(),\n \'project_title\': p.getTranslatedTitle(),\n
\'stop_date\': p.getStopDate()})\n \'stop_date\': p.getStopDate()})\n
i += 1\n i += 1\n
result.extend(r.RequirementDocument_getProjectCoverageList())\n result.extend(r.RequirementDocument_getProjectCoverageList())\n
......
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