From 9cf9b5a2755090c7b2c99cc957d7f611b96812d6 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Mon, 26 Aug 2024 12:15:33 +0200 Subject: [PATCH] [FIX] sign_oca: The id of the roles must be taken from role_id, not signer_id --- sign_oca/models/sign_oca_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sign_oca/models/sign_oca_request.py b/sign_oca/models/sign_oca_request.py index 910b28b7..719661da 100644 --- a/sign_oca/models/sign_oca_request.py +++ b/sign_oca/models/sign_oca_request.py @@ -156,7 +156,7 @@ def get_info(self): "name": self.name, "items": self.signatory_data, "roles": [ - {"id": signer.id, "name": signer.role_id.name} + {"id": signer.role_id.id, "name": signer.role_id.name} for signer in self.signer_ids ], "fields": [