From f3b632377cd098b787240fb487324184e39d676d Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Thu, 4 Jun 2020 11:17:12 +0200 Subject: [PATCH] [FIX] mgmtsystem_audit get_lines_by_procedure --- mgmtsystem_audit/models/mgmtsystem_audit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mgmtsystem_audit/models/mgmtsystem_audit.py b/mgmtsystem_audit/models/mgmtsystem_audit.py index f96a63d09863..20dcde527262 100644 --- a/mgmtsystem_audit/models/mgmtsystem_audit.py +++ b/mgmtsystem_audit/models/mgmtsystem_audit.py @@ -160,17 +160,17 @@ def get_action_url(self): def get_lines_by_procedure(self): p = [] - for l in self.line_ids: - if l.procedure_id.id: - procedure_name = l.procedure_id.name + for line in self.line_ids: + if line.procedure_id.id: + procedure_name = line.procedure_id.name else: procedure_name = _("Undefined") p.append( { - "id": l.id, + "id": line.id, "procedure": procedure_name, - "name": l.name, + "name": line.name, "yes_no": "Yes / No", } )