Xavier ALT
9be2ec255b
[FIX] crm: handle customer creation on. lead -> oppor. w/ archived lang
...
To reproduce:
1. enable 'debug' mode
2. go to menu "Settings / Translations / Languages" and enable a new
language (ex: nl_NL)
3 create a new lead and set that language
(IMPORTANT: do not set a customer)
4. go back to menu "Settings / Translations / Languages" and disable the
language you previously enabled at step 2.
5. from the lead list view, selection the lead you created at step 3,
click "Action" and choose "Convert to opportunities"
6. In the wizard choose for:
* Conversion Action: Convert to opportunity
* Customer: Create a new customer
7. Click button "Convert to opportunity"
This crash with the following error:
```
Traceback (most recent call last):
File "/data/build/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/data/build/odoo/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Wrong value for res.partner.lang: 'nl_NL'
```
This commit ensure that when converting a lead to an opportunity, we
don't crash if language is archived.
OPW-3617359
closes odoo/odoo#147003
X-original-commit: 208d6ed021f62b1b53f75129a18e8a0d302f47b0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com >
Signed-off-by: Xavier Alt (xal) <xal@odoo.com >
2023-12-21 09:12:21 +00:00
..
2023-12-21 04:56:58 +00:00
2023-12-20 18:01:44 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-15 11:40:43 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 15:21:34 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 16:19:43 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 06:58:42 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-21 09:12:21 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 12:36:44 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 09:36:52 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-11 09:56:49 +00:00
2023-11-27 11:20:02 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 09:55:06 +00:00
2023-12-17 00:08:26 +01:00
2023-11-27 11:20:05 +00:00
2023-11-07 23:57:41 +00:00
2023-12-05 21:15:27 +00:00
2023-11-22 10:23:41 +00:00
2023-11-28 21:20:52 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-17 00:54:07 +00:00
2023-12-08 09:53:38 +00:00
2023-11-07 23:57:41 +00:00
2023-12-16 17:11:25 +00:00
2023-12-06 19:30:05 +00:00
2023-11-07 23:57:41 +00:00
2023-11-09 16:19:41 +00:00
2023-11-07 23:57:41 +00:00
2023-12-18 23:32:07 +00:00
2023-12-07 18:35:51 +00:00
2023-12-02 00:42:53 +00:00
2023-11-28 21:20:49 +00:00
2023-12-04 08:51:53 +00:00
2023-11-29 22:42:37 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-12-12 14:05:02 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-24 06:53:37 +00:00
2023-12-19 09:36:55 +00:00
2023-12-19 09:36:55 +00:00
2023-12-19 09:36:55 +00:00
2023-12-15 10:09:30 +00:00
2023-12-01 19:25:32 +00:00
2023-12-07 21:30:05 +00:00
2023-11-07 23:57:41 +00:00
2023-11-10 13:46:57 +00:00
2023-11-08 14:36:26 +00:00
2023-12-13 08:24:11 +00:00
2023-12-05 19:53:27 +00:00
2023-12-15 08:44:20 +00:00
2023-12-07 21:30:05 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 13:34:06 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-12-09 13:29:18 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-12-05 21:15:23 +00:00
2023-11-30 14:48:15 +00:00
2023-11-22 10:23:50 +00:00
2023-12-11 14:46:52 +00:00
2023-12-01 14:23:42 +00:00
2023-11-20 03:46:47 +00:00
2023-11-24 06:53:36 +00:00
2023-11-22 03:24:33 +00:00
2023-11-20 14:13:59 +00:00
2023-11-07 23:57:41 +00:00
2023-11-16 10:19:44 +00:00
2023-11-07 23:57:41 +00:00
2023-11-22 07:43:08 +00:00
2023-11-25 04:36:00 +00:00
2023-12-15 22:24:14 +00:00
2023-12-06 11:22:05 +00:00
2023-12-06 21:48:56 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-12-05 22:40:42 +00:00
2023-12-05 22:40:42 +00:00
2023-11-13 07:26:00 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-08 14:36:26 +00:00
2023-12-18 18:46:39 +00:00
2023-11-27 11:20:05 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-12-15 08:44:22 +00:00
2023-12-07 21:30:05 +00:00
2023-12-12 21:49:50 +00:00
2023-12-13 00:32:24 +00:00
2023-11-08 14:36:26 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-08 14:36:26 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-11-07 23:57:41 +00:00
2023-12-05 22:40:48 +00:00
2023-11-07 23:57:41 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 09:55:06 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 08:35:43 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 17:32:18 +00:00
2023-12-20 07:28:11 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-11-16 11:44:56 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-09 00:11:02 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-11-27 12:39:58 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 14:51:40 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 09:36:56 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-19 09:36:57 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-21 07:59:55 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 08:35:43 +00:00
2023-12-18 23:32:05 +00:00
2023-12-20 08:35:46 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 16:19:43 +00:00
2023-12-19 06:58:42 +00:00
2023-12-05 19:53:22 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-12 23:08:59 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-19 16:19:44 +00:00
2023-12-20 15:21:33 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-19 11:03:54 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-21 07:59:57 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 07:28:10 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-20 16:51:14 +00:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-19 08:12:27 +00:00
2023-12-18 23:32:05 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-18 23:32:05 +00:00
2023-12-20 07:28:10 +00:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00
2023-12-17 00:08:26 +01:00