mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims_administrative_task: avoid error when task has no origin
This commit is contained in:
parent
736f16e2ed
commit
9e0cd2b061
1 changed files with 4 additions and 3 deletions
|
@ -377,9 +377,10 @@ class AdministrativeTask(Workflow, ModelSQL, ModelView):
|
|||
body += '\n%s: %s' % (
|
||||
gettext('lims_administrative_task.field_task_priority'),
|
||||
str(self.priority_string))
|
||||
body += '\n%s: %s' % (
|
||||
gettext('lims_administrative_task.field_task_origin'),
|
||||
str(self.origin.rec_name))
|
||||
if self.origin:
|
||||
body += '\n%s: %s' % (
|
||||
gettext('lims_administrative_task.field_task_origin'),
|
||||
str(self.origin.rec_name))
|
||||
return subject, body
|
||||
|
||||
def _get_task_url(self):
|
||||
|
|
Loading…
Reference in a new issue