From 1113908a533ea63c9a4dadf2181e694687ab741d Mon Sep 17 00:00:00 2001 From: Pedro Pablo Date: Wed, 11 Sep 2024 11:34:01 +0200 Subject: [PATCH] [IMP] sign_oca: Filter unsigned documents in user count Add ("signed_on", "=", False) to sign_oca_request_user_count domain - Ensures only unsigned documents are counted - Improves accuracy of pending signature notifications - Prevents signed documents from appearing in user's to-sign list --- sign_oca/models/res_users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sign_oca/models/res_users.py b/sign_oca/models/res_users.py index 0bc1eb36..2cee49e9 100644 --- a/sign_oca/models/res_users.py +++ b/sign_oca/models/res_users.py @@ -17,6 +17,7 @@ def sign_oca_request_user_count(self): "child_of", [self.env.user.partner_id.commercial_partner_id.id], ), + ("signed_on", "=", False), ] signer_model = self.env["sign.oca.request.signer"] signer_groups = signer_model.read_group(domain, ["model"], ["model"])