tsm-odoo
b5896c9d03
[IMP] *: add generic make_jsonrpc method in tests
...
*: bus, crm_livechat, crm_mail_plugin, im_livechat, payment, payment_demo,
pos_online_payment, test_discuss_full, test_mail_full, tests, website_livechat,
website_sale.
Several python tests have their own way to make jsonrpc requests. This PR adds a
generic `make_jsonrpc_request` method to the `HttpCase` in order to provide a
generic way to do so.
At the same time, calls to `_open_livechat_channel` are removed in favor of
jsonrpc request to `get_session`. This makes the tests more realistics (some
incoherences were present like passing `country_id` to the open channel method
while the user country id is not set...)
Finally, this will ease the diff in the PR introducing livechat visitors as mail
guests.
part of task-3332628
closes odoo/odoo#130036
Related: odoo/enterprise#44840
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com >
2023-07-31 23:21:10 +02:00
..
2023-07-31 19:02:49 +02:00
2023-07-19 18:24:15 +02:00
2023-07-19 18:24:15 +02:00
2023-07-24 23:04:02 +02:00
2023-07-28 08:13:55 +02:00
2023-07-24 11:28:47 +02:00
2023-07-27 11:58:34 +02:00
2023-07-26 10:48:54 +02:00
2023-07-20 06:40:43 +02:00
2023-07-15 04:01:09 +02:00
2023-07-25 17:36:08 +02:00
2023-07-05 09:01:10 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-19 13:13:16 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 19:02:57 +02:00
2023-07-27 16:14:24 +02:00
2023-06-28 17:41:19 +02:00
2023-06-21 15:53:15 +02:00
2023-07-18 11:42:26 +02:00
2023-07-24 12:49:21 +02:00
2023-07-19 18:24:15 +02:00
2023-07-20 11:49:06 +02:00
2023-06-28 17:41:19 +02:00
2023-07-20 11:49:06 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-31 19:02:45 +02:00
2023-07-24 20:17:50 +02:00
2023-07-28 23:16:26 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-31 23:21:10 +02:00
2023-07-28 16:29:28 +02:00
2023-07-25 00:54:54 +02:00
2023-07-10 16:59:11 +02:00
2023-07-27 11:58:34 +02:00
2023-07-25 17:36:08 +02:00
2023-07-27 14:47:00 +02:00
2023-07-24 10:14:33 +02:00
2023-07-24 20:17:50 +02:00
2023-06-21 06:57:53 +02:00
2023-07-25 17:36:08 +02:00
2023-07-25 17:36:08 +02:00
2023-07-06 15:03:42 +02:00
2023-07-26 09:22:07 +02:00
2023-07-27 11:58:34 +02:00
2023-07-28 16:28:52 +02:00
2023-07-25 21:22:46 +02:00
2023-07-25 21:22:46 +02:00
2023-07-31 20:53:58 +02:00
2023-07-05 14:21:28 +02:00
2023-07-19 18:24:15 +02:00
2023-07-27 11:58:34 +02:00
2023-06-28 17:41:19 +02:00
2023-07-25 21:22:46 +02:00
2023-06-22 18:29:50 +02:00
2023-07-24 20:17:50 +02:00
2023-07-27 11:58:34 +02:00
2023-06-27 17:33:02 +02:00
2023-07-05 14:21:28 +02:00
2023-07-25 17:35:35 +02:00
2023-07-11 12:00:40 +02:00
2023-07-25 00:54:54 +02:00
2023-07-13 14:47:44 +02:00
2023-07-26 09:22:17 +02:00
2023-07-19 18:24:10 +02:00
2023-07-24 20:18:08 +02:00
2023-07-20 05:03:02 +02:00
2023-07-15 10:54:46 +02:00
2023-06-22 15:41:00 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-13 19:28:04 +02:00
2023-07-25 00:54:53 +02:00
2023-07-27 11:58:34 +02:00
2023-07-24 23:04:20 +02:00
2023-07-07 10:52:36 +02:00
2023-07-25 00:54:54 +02:00
2023-07-25 00:54:54 +02:00
2023-07-25 00:54:53 +02:00
2023-06-26 22:15:22 +02:00
2023-07-25 08:18:58 +02:00
2023-07-10 15:32:26 +02:00
2023-07-21 12:48:34 +02:00
2023-07-07 16:42:41 +02:00
2023-07-10 15:32:29 +02:00
2023-07-20 11:49:06 +02:00
2023-07-10 15:32:28 +02:00
2023-07-10 11:48:57 +02:00
2023-07-27 20:32:39 +02:00
2023-07-20 11:49:06 +02:00
2023-07-11 06:52:57 +02:00
2023-07-20 11:49:06 +02:00
2023-07-11 09:10:21 +02:00
2023-07-27 14:47:24 +02:00
2023-07-27 20:32:36 +02:00
2023-06-26 13:21:03 +02:00
2023-07-25 08:18:58 +02:00
2023-07-24 23:04:20 +02:00
2023-07-27 16:14:09 +02:00
2023-07-13 14:47:36 +02:00
2023-07-10 15:32:28 +02:00
2023-07-20 06:40:43 +02:00
2023-07-10 15:32:28 +02:00
2023-07-10 15:32:07 +02:00
2023-07-22 10:11:13 +02:00
2023-07-15 12:00:33 +02:00
2023-07-20 11:49:06 +02:00
2023-07-25 08:18:58 +02:00
2023-07-27 05:18:46 +02:00
2023-07-07 12:09:57 +02:00
2023-07-10 15:32:27 +02:00
2023-07-20 17:01:08 +02:00
2023-07-20 17:01:08 +02:00
2023-06-28 17:41:19 +02:00
2023-07-20 11:49:06 +02:00
2023-06-28 17:41:19 +02:00
2023-07-27 14:47:07 +02:00
2023-07-10 15:32:29 +02:00
2023-07-10 15:32:27 +02:00
2023-07-10 15:32:25 +02:00
2023-07-20 11:49:06 +02:00
2023-07-19 18:24:15 +02:00
2023-07-18 10:20:08 +02:00
2023-06-30 01:32:47 +02:00
2023-07-15 10:54:20 +02:00
2023-07-20 11:49:06 +02:00
2023-07-25 08:18:58 +02:00
2023-07-20 06:40:43 +02:00
2023-07-24 23:04:20 +02:00
2023-06-24 03:35:44 +02:00
2023-07-10 15:32:26 +02:00
2023-07-10 15:32:28 +02:00
2023-07-20 06:40:43 +02:00
2023-06-26 20:00:32 +02:00
2023-07-28 21:54:53 +02:00
2023-07-17 20:36:09 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 19:02:45 +02:00
2023-07-27 11:58:34 +02:00
2023-07-19 19:37:55 +02:00
2023-07-28 16:29:00 +02:00
2023-07-27 14:47:39 +02:00
2023-07-13 12:26:17 +02:00
2023-07-25 17:36:08 +02:00
2023-07-19 21:59:57 +02:00
2023-07-19 18:24:15 +02:00
2023-07-26 09:22:07 +02:00
2023-07-20 15:45:05 +02:00
2023-07-27 11:58:34 +02:00
2023-07-20 11:49:06 +02:00
2023-07-20 11:49:27 +02:00
2023-07-20 17:01:00 +02:00
2023-07-31 19:02:58 +02:00
2023-07-18 09:07:16 +02:00
2023-07-20 17:01:00 +02:00
2023-07-04 10:16:13 +02:00
2023-07-17 13:30:46 +02:00
2023-07-31 23:21:10 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 14:47:17 +02:00
2023-07-31 19:02:58 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-25 08:18:58 +02:00
2023-07-28 16:28:45 +02:00
2023-07-25 08:18:58 +02:00
2023-07-28 16:28:45 +02:00
2023-07-27 11:58:34 +02:00
2023-07-28 16:28:45 +02:00
2023-07-25 08:18:58 +02:00
2023-07-05 14:33:58 +02:00
2023-07-31 23:21:10 +02:00
2023-07-20 14:22:57 +02:00
2023-07-28 16:28:45 +02:00
2023-07-25 08:18:58 +02:00
2023-07-25 08:18:58 +02:00
2023-07-31 19:02:45 +02:00
2023-07-27 11:58:34 +02:00
2023-07-28 16:28:45 +02:00
2023-07-24 20:17:56 +02:00
2023-07-28 16:28:45 +02:00
2023-07-25 08:18:58 +02:00
2023-06-28 17:41:19 +02:00
2023-07-28 14:53:50 +02:00
2023-07-25 00:54:53 +02:00
2023-07-20 14:23:15 +02:00
2023-07-25 00:54:53 +02:00
2023-07-31 19:02:58 +02:00
2023-07-19 23:17:53 +02:00
2023-07-19 23:17:53 +02:00
2023-07-19 23:17:53 +02:00
2023-07-19 23:17:53 +02:00
2023-07-19 23:17:53 +02:00
2023-07-20 13:06:46 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-13 19:28:21 +02:00
2023-07-24 20:17:50 +02:00
2023-07-28 16:29:11 +02:00
2023-07-17 18:13:30 +02:00
2023-07-27 11:58:34 +02:00
2023-07-25 17:36:08 +02:00
2023-07-25 17:36:08 +02:00
2023-06-29 22:38:49 +02:00
2023-07-28 14:54:13 +02:00
2023-07-19 18:24:15 +02:00
2023-07-27 11:58:34 +02:00
2023-07-19 18:24:15 +02:00
2023-07-27 11:58:34 +02:00
2023-06-22 08:34:58 +02:00
2023-07-18 09:07:13 +02:00
2023-07-27 14:47:00 +02:00
2023-07-24 20:17:50 +02:00
2023-07-27 00:54:56 +02:00
2023-06-23 09:20:57 +02:00
2023-07-26 12:00:30 +02:00
2023-07-25 00:54:52 +02:00
2023-07-20 10:07:11 +02:00
2023-07-27 11:58:34 +02:00
2023-07-25 17:36:08 +02:00
2023-07-25 17:36:08 +02:00
2023-07-20 11:49:04 +02:00
2023-07-27 14:47:32 +02:00
2023-07-20 11:49:06 +02:00
2023-07-05 10:12:48 +02:00
2023-07-27 02:21:29 +02:00
2023-07-25 00:54:52 +02:00
2023-07-19 18:24:15 +02:00
2023-07-15 13:05:53 +02:00
2023-07-25 17:36:08 +02:00
2023-07-25 17:36:08 +02:00
2023-07-19 18:24:15 +02:00
2023-07-27 14:47:00 +02:00
2023-06-28 17:41:19 +02:00
2023-07-31 23:21:10 +02:00
2023-07-19 13:13:16 +02:00
2023-07-31 19:02:45 +02:00
2023-07-31 23:21:10 +02:00
2023-07-24 20:17:50 +02:00
2023-07-31 16:10:54 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-06-28 17:41:19 +02:00
2023-06-28 17:41:19 +02:00
2023-07-17 12:05:48 +02:00
2023-07-31 20:54:01 +02:00
2023-07-31 19:02:45 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 16:10:58 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-18 11:42:26 +02:00
2023-07-31 19:02:45 +02:00
2023-07-11 22:33:47 +02:00
2023-07-27 14:47:37 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-06-28 17:41:19 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-11 22:33:47 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-06-26 21:10:01 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 19:02:58 +02:00
2023-07-27 11:58:34 +02:00
2023-07-28 14:54:16 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 19:02:58 +02:00
2023-07-18 16:58:43 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00