Julien Van Roy
992532e9ef
[FIX] account_edi[_ubl_cii]: company_id when searching retrieve_partner
...
Bug:
1. Have at least 2 companies ("A" and "B")
2. Export an xml (Bis 3 for instance) for an invoice with customer
"Azure Interior"
3. Set a company on "Azure Interior" (say: A)
4. Import the xml in multicompany mode, with current company = B The
partner "Azure Interior" should be retrieved, but when writing it on the
invoice, it will throw a UserError "odoo.exceptions.UserError:
Incompatible companies on records: 'Draft Invoice (* 63)
(INV/2024/00006)' belongs to company 'B' and 'Partner'
(partner_id: 'Azure Interior') belongs to another company."
Cause:
We try to write a partner on an invoice belonging to another company. It
only occors when we have several companies selected because there is the
global rule `base.res_partner_rule` that will add `('company_id', 'in',
company_ids + [False])` to any search domain on the partner
(`company_ids` is replaced by `env.companies.ids`, see `_eval_context`).
Fix:
Ensure any search domain contains `env.company.id`: the `company_id` of
the move being created.
opw-3829223
closes odoo/odoo#162019
X-original-commit: 18119d446bdca9c04b7085bd1a1bd2f0e0b94ff3
Related: odoo/enterprise#60816
Signed-off-by: William André (wan) <wan@odoo.com >
Signed-off-by: Julien Van Roy (juvr) <juvr@odoo.com >
2024-04-16 17:38:12 +00:00
..
2024-04-16 17:38:12 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 17:38:12 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:46 +00:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-16 08:36:06 +00:00
2024-04-14 00:09:33 +02:00
2024-03-27 17:45:00 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-16 07:02:57 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-11 08:12:56 +00:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 07:02:56 +00:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:47 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 09:10:11 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 14:09:44 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:53 +00:00
2024-04-09 07:22:43 +00:00
2024-04-09 19:35:41 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-21 18:35:46 +00:00
2024-04-11 16:43:19 +00:00
2024-03-22 03:11:48 +00:00
2024-04-09 23:14:46 +00:00
2024-03-21 11:11:41 +00:00
2024-03-29 10:44:21 +00:00
2024-03-21 23:03:07 +00:00
2024-04-11 08:13:00 +00:00
2024-03-26 13:35:53 +00:00
2024-03-29 18:09:41 +00:00
2024-03-26 22:20:21 +00:00
2024-04-11 15:02:49 +00:00
2024-04-16 07:02:58 +00:00
2024-03-27 09:12:49 +00:00
2024-04-11 15:02:48 +00:00
2024-04-06 07:27:58 +00:00
2024-04-14 09:28:07 +00:00
2024-04-10 20:56:59 +00:00
2024-04-08 11:13:51 +00:00
2024-04-15 09:10:18 +00:00
2024-04-09 13:04:12 +00:00
2024-03-22 09:44:38 +00:00
2024-03-29 18:09:45 +00:00
2024-04-14 21:02:42 +00:00
2024-04-09 15:06:45 +00:00
2024-03-31 00:33:23 +00:00
2024-04-02 12:09:28 +00:00
2024-04-10 11:45:53 +00:00
2024-04-04 08:18:55 +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-04-11 08:12:51 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 14:09:45 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +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-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 09:10:17 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-11 11:22:46 +00:00
2024-04-09 11:19:48 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:48 +00:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 05:53:14 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 10:32:32 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-05 10:30:39 +00:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 08:36:04 +00:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-03-22 14:47:54 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 16:18:44 +00:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 16:21:47 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 10:32:32 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-16 08:36:04 +00:00
2024-04-14 00:09:33 +02:00
2024-04-05 12:18:14 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 16:18:44 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-15 09:10:20 +00:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00
2024-03-22 11:20:04 +00:00
2024-03-28 12:19:04 +00:00
2024-04-15 14:09:45 +00:00
2024-04-05 08:57:48 +00:00
2024-03-29 10:44:19 +00:00
2024-04-07 10:03:48 +00:00
2024-03-29 09:12:17 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 16:18:45 +00:00
2024-04-16 08:36:05 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-15 16:21:46 +00:00
2024-04-16 16:18:46 +00:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-03-21 19:54:27 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 12:24:48 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-16 14:12:52 +00:00
2024-04-14 00:09:33 +02:00
2024-04-11 18:07:50 +00:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-04-14 00:09:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-14 00:09:33 +02:00