From 5db815cc6c56ecd5c131c935e4a0a225b4e6ef17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Mon, 11 Nov 2024 10:01:47 +0100 Subject: [PATCH] [FIX] sign_oca: Define the correct url to be set in the email that is sent to the signers so that everyone can sign Example use case: - Create a request - Define 2 different signers - Click on the Send button - 2 emails will be sent and each one will have the correct url in the Sign document button Fixes https://github.com/OCA/sign/issues/71 --- sign_oca/models/sign_oca_request.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sign_oca/models/sign_oca_request.py b/sign_oca/models/sign_oca_request.py index b0fd30f1..b0d50c75 100644 --- a/sign_oca/models/sign_oca_request.py +++ b/sign_oca/models/sign_oca_request.py @@ -393,6 +393,7 @@ def _compute_is_allow_signature(self): not item.signed_on and item.partner_id == user.partner_id ) + @api.depends("access_token") def _compute_access_url(self): result = super()._compute_access_url() for record in self: