Skip to content
Snippets Groups Projects
Commit 78912f10 authored by Pierre-Yves Dufays's avatar Pierre-Yves Dufays
Browse files

[FIX] survey: fix detect duplicate partner invitation


When sending the same survey to the same partner, the system detects it and
allows the user to choose between sending a new invitation or resending the
old one so that the user can continue the survey that might already be ongoing.
The detection was not working anymore and this fixes the problem.

Technical note: _compute_existing_partner_ids was intersecting record set
partner_ids (the one currently added) and a record set of partner for which an
invitation has already been sent. The intersection didn't work because
partner_ids relation was not completely set and instead of id, had "origin" id.
Comparing id using a filter solves the problem (using the trick that .ids,
return also the origin ids).

Task-3087702

closes odoo/odoo#108448

Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
parent 3ff51daa
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment