View history lines for cancellation of tasks or information #22006
This commit is contained in:
parent
e32a0ea66b
commit
e32afd08fb
|
@ -47,6 +47,26 @@ class ContentHistoryView(BaseHistoryView):
|
|||
history_line['comments'] = _('To: ${to}', mapping={'to': history_line.get('to', '')})
|
||||
history_line['transition_title'] = _('Sent version ${version} by email',
|
||||
mapping={'version': history_line.get('version', '?')})
|
||||
|
||||
# Task / Information creation and cancellation lines
|
||||
if history_line['action_id'] == 'creation':
|
||||
history_line['actor'] = None
|
||||
history_line['actor_home'] = None
|
||||
history_line['actorid'] = history_line['actor_name']
|
||||
history_line['type'] = 'creation'
|
||||
history_line['action'] = 'creation'
|
||||
history_line['transition_title'] = history_line['task_title']
|
||||
if history_line['action_id'] == 'cancellation':
|
||||
history_line['actor'] = None
|
||||
history_line['actor_home'] = None
|
||||
history_line['actorid'] = history_line['actor_name']
|
||||
history_line['type'] = 'cancellation'
|
||||
history_line['action'] = 'cancellation'
|
||||
history_line['transition_title'] = _(
|
||||
'Cancelling ${task} for ${responsible}',
|
||||
mapping={'task': history_line['task_title'],
|
||||
'responsible': history_line['responsible']})
|
||||
|
||||
return history
|
||||
|
||||
def workflowHistory(self, complete=True):
|
||||
|
|
|
@ -118,6 +118,10 @@ msgstr "Annuler la validation de la version ${version}"
|
|||
msgid "Cancel validation request"
|
||||
msgstr "Annuler la demande de validation"
|
||||
|
||||
#: ../browser/history.py:69
|
||||
msgid "Cancelling ${task} for ${responsible}"
|
||||
msgstr "Annulation de ${task} pour ${responsible}"
|
||||
|
||||
#: ../browser/refuse.py:33
|
||||
#: ../browser/send_by_email.py:35
|
||||
#: ../browser/to_process.py:25
|
||||
|
|
|
@ -120,6 +120,10 @@ msgstr ""
|
|||
msgid "Cancel validation request"
|
||||
msgstr ""
|
||||
|
||||
#: ../browser/history.py:69
|
||||
msgid "Cancelling ${task} for ${responsible}"
|
||||
msgstr ""
|
||||
|
||||
#: ../browser/refuse.py:33
|
||||
#: ../browser/send_by_email.py:35
|
||||
#: ../browser/to_process.py:25
|
||||
|
|
Reference in New Issue