Levi Siuzdak (sile)
dffc575725
[FIX] mail: prioritize partners with matching company in email lookup
...
Versions
--------
- 16.0+
Steps
-----
1. Have two companies with helpdesk teams;
2. create a contact associated with company 1;
3. create a contact associated with company 2 w/ the same email address;
4. from this address, send an email to team 2 to create a ticket.
Issue
-----
Ticket is created using company 1's contact.
Cause
-----
When searching for partners associated with an email address, it only
looks at the first one.
Solution
--------
Expanding on e1d50a404516d5b32bf01508423c5a1c880cb304 which prioritized
the current user, further prioritize based on companies matching the
records passed to `_mail_find_partner_from_email`, avoiding potential
access rights errors in multi-company environments.
Also fixes a bug in account_move where `_mail_find_partner_from_email`
was called with an `extra_domain` argument in the wrong position.
opw-3705199
closes odoo/odoo#159108
X-original-commit: 60dd5348179c9bdcc78e4ad46bd9b768a6e3ea21
Signed-off-by: Levi Siuzdak <sile@odoo.com >
2024-03-29 10:44:18 +00:00
..
2024-03-29 10:44:18 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-26 09:54:22 +00:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-26 09:54:22 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-26 08:20:22 +00:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-26 09:54:25 +00:00
2024-03-27 16:10:58 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-27 17:45:00 +00:00
2024-03-26 09:54:19 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-27 16:10:59 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-26 09:54:31 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-26 09:54:23 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-10 00:13:03 +01:00
2024-03-17 00:11:43 +01:00
2024-03-25 17:50:06 +00:00
2024-03-17 00:11:43 +01:00
2024-03-25 10:00:44 +00:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-28 12:19:09 +00:00
2024-03-18 08:45:37 +00:00
2024-03-24 00:12:07 +01:00
2024-03-21 11:11:40 +00:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-21 18:35:46 +00:00
2024-03-07 11:40:25 +00:00
2024-03-22 03:11:48 +00:00
2024-03-21 11:11:41 +00:00
2024-03-21 23:03:07 +00:00
2024-03-22 07:00:44 +00:00
2024-03-13 09:14:14 +00:00
2024-03-26 13:35:53 +00:00
2024-03-16 00:04:48 +00:00
2024-03-26 22:20:21 +00:00
2024-03-15 05:02:59 +00:00
2024-03-26 09:54:22 +00:00
2024-03-27 09:12:49 +00:00
2024-03-07 15:12:17 +00:00
2024-03-08 11:17:48 +00:00
2024-03-07 05:07:08 +00:00
2024-03-04 08:11:59 +00:00
2024-03-18 05:04:11 +00:00
2024-03-04 08:11:57 +00:00
2024-03-14 15:43:44 +00:00
2024-03-26 09:54:22 +00:00
2024-03-22 09:44:38 +00:00
2024-03-08 12:48:55 +00:00
2024-03-11 15:03:07 +00:00
2024-03-13 14:03:10 +00:00
2024-03-15 18:42:49 +00:00
2024-03-08 11:17:47 +00:00
2024-03-14 08:06:26 +00:00
2024-03-06 14:30:37 +00:00
2024-03-11 16:37:32 +00:00
2024-03-15 17:30:00 +00:00
2024-03-11 10:17:46 +00:00
2024-03-29 07:53:02 +00:00
2024-03-22 14:47:57 +00:00
2024-03-21 23:03:07 +00:00
2024-03-13 14:03:11 +00:00
2024-03-06 14:30:35 +00:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-25 17:50:06 +00:00
2024-03-29 10:44:18 +00:00
2024-03-24 00:12:07 +01:00
2024-03-11 16:37:34 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-29 04:01:13 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-15 06:12:46 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-29 09:12:21 +00:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-28 14:16:50 +00:00
2024-03-17 00:11:43 +01:00
2024-03-28 21:37:36 +00:00
2024-03-24 00:12:07 +01:00
2024-03-28 12:19:11 +00:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-28 16:04:47 +00:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-20 17:11:47 +00:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-22 13:02:01 +00:00
2024-03-10 00:13:03 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-28 19:51:00 +00:00
2024-03-28 14:16:49 +00:00
2024-03-26 09:54:20 +00:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-27 14:09:50 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-07 08:25:54 +00:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-28 14:16:43 +00:00
2024-03-12 16:59:03 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-22 14:47:54 +00:00
2024-03-12 16:59:03 +00:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-28 14:16:50 +00:00
2024-03-10 00:13:03 +01:00
2024-03-25 17:50:06 +00:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-25 17:50:06 +00:00
2024-03-29 09:12:20 +00:00
2024-03-24 00:12:07 +01:00
2024-03-26 08:20:21 +00:00
2024-03-10 00:13:03 +01:00
2024-03-28 18:06:43 +00:00
2024-03-28 18:06:45 +00:00
2024-03-28 08:41:09 +00:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-26 09:54:30 +00:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-28 14:16:51 +00:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-26 09:54:22 +00:00
2024-03-17 00:11:43 +01:00
2024-03-25 13:08:03 +00:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-28 18:06:44 +00:00
2024-03-26 17:22:12 +00:00
2024-03-24 00:12:07 +01:00
2024-03-18 08:45:39 +00:00
2024-03-25 17:50:06 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-27 14:09:49 +00:00
2024-03-22 11:20:04 +00:00
2024-03-28 12:19:04 +00:00
2024-03-13 09:14:09 +00:00
2024-03-25 17:50:06 +00:00
2024-03-25 17:50:06 +00:00
2024-03-29 09:12:17 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-27 16:11:00 +00:00
2024-03-29 09:12:17 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-29 09:12:17 +00:00
2024-03-28 16:04:46 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-21 11:11:37 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-27 12:34:07 +00:00
2024-03-21 19:54:27 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-21 19:54:27 +00:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-27 14:09:47 +00:00
2024-03-28 08:41:11 +00:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-18 07:04:10 +00:00
2024-03-17 00:11:43 +01:00
2024-03-10 00:13:03 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-10 00:13:03 +01:00
2024-03-24 00:12:07 +01:00
2024-03-28 12:19:08 +00:00
2024-03-10 00:13:03 +01:00
2024-03-28 10:19:45 +00:00
2024-03-28 18:06:43 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-28 10:19:41 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00