Thibault Delavallée
5747139122
[REF] account: make alias usage standard
...
Current usage of aliases in 'account.journal' model is a bit low-level and
is done by hand. This is notably due to some specific requirements for
accounting: batch install of journals with aliases with names holding
non-ascii characters, easy support of multi-company when creating aliases
with similar names, specific heuristic to generate alias name to be
understandable if sanitize / encoding leads to stripping lot of name parts.
Inherit from the 'mail.alias.mixin.optional' that automates management of
alias without requiring the "alias_id" field. It handles aliases like other
Odoo models, notably for security, readable / writable field, alias reset
or values synchronization. It allows to remove unwanted sudo().{write/unlink}
and have code more aligned with current standards.
Using this mixin allows to skip the inactive alias creation and instead keep
a void m2o. When having a lot of journals to create for some COA this helps
saving DB space and reduce number of inactive and useless aliases.
Task-3453343 (Mail: Cleanup Alias Usage)
Prepares Task-36879 (Mail: Support MultiCompany Aliases)
Part-of: odoo/odoo#130632
2023-08-09 17:04:26 +02:00
..
2023-08-09 17:04:26 +02:00
2023-07-19 18:24:15 +02:00
2023-07-19 18:24:15 +02:00
2023-08-07 13:42:09 +02:00
2023-08-03 08:26:28 +02:00
2023-08-08 11:09:24 +02:00
2023-07-27 11:58:34 +02:00
2023-08-03 08:26:28 +02:00
2023-07-20 06:40:43 +02:00
2023-08-08 08:56:22 +02:00
2023-08-01 13:51:17 +02:00
2023-08-09 00:13:08 +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-08-09 00:13:08 +02:00
2023-08-05 01:55:50 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-07-24 12:49:21 +02:00
2023-07-19 18:24:15 +02:00
2023-08-08 18:40:45 +02:00
2023-07-20 11:49:06 +02:00
2023-08-01 13:51:17 +02:00
2023-08-09 14:36:12 +02:00
2023-08-09 14:36:12 +02:00
2023-08-02 18:50:17 +02:00
2023-07-24 20:17:50 +02:00
2023-08-09 17:04:26 +02:00
2023-08-09 00:13:08 +02:00
2023-08-01 13:51:17 +02:00
2023-07-31 23:21:10 +02:00
2023-07-31 23:21:18 +02:00
2023-08-01 13:51:47 +02:00
2023-08-09 00:13:08 +02:00
2023-07-25 17:36:08 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 18:50:17 +02:00
2023-08-02 18:50:17 +02:00
2023-08-02 18:50:17 +02:00
2023-08-02 15:59:33 +02:00
2023-07-25 17:36:08 +02:00
2023-08-03 21:56:56 +02:00
2023-08-09 00:13:08 +02:00
2023-08-07 12:32:37 +02:00
2023-08-09 11:51:56 +02:00
2023-08-07 12:32:37 +02:00
2023-08-09 17:04:26 +02:00
2023-07-19 18:24:15 +02:00
2023-08-09 00:13:08 +02:00
2023-08-02 17:29:05 +02:00
2023-07-24 20:17:50 +02:00
2023-08-09 17:04:26 +02:00
2023-07-25 17:35:35 +02:00
2023-08-09 03:08:14 +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-08-09 17:04:00 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 14:36:12 +02:00
2023-07-25 00:54:53 +02:00
2023-08-04 22:30:21 +02:00
2023-07-24 23:04:20 +02:00
2023-08-02 13:20:03 +02:00
2023-07-25 00:54:54 +02:00
2023-08-03 21:57:01 +02:00
2023-07-25 00:54:54 +02:00
2023-07-25 00:54:53 +02:00
2023-08-02 17:29:05 +02:00
2023-08-08 22:41:00 +02:00
2023-07-21 12:48:34 +02:00
2023-07-20 11:49:06 +02:00
2023-08-07 13:42:09 +02:00
2023-07-27 20:32:39 +02:00
2023-08-02 06:18:20 +02:00
2023-08-07 13:42:09 +02:00
2023-08-06 19:12:13 +02:00
2023-08-07 13:42:28 +02:00
2023-08-04 16:35:05 +02:00
2023-08-02 17:29:05 +02:00
2023-07-24 23:04:20 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 06:18:50 +02:00
2023-07-20 06:40:43 +02:00
2023-07-22 10:11:13 +02:00
2023-07-15 12:00:33 +02:00
2023-08-04 09:43:37 +02:00
2023-08-08 08:56:08 +02:00
2023-07-20 11:49:06 +02:00
2023-08-02 17:29:05 +02:00
2023-08-07 13:42:09 +02:00
2023-08-03 10:42:49 +02:00
2023-07-20 17:01:08 +02:00
2023-08-09 03:08:37 +02:00
2023-07-27 14:47:07 +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-08-08 08:56:15 +02:00
2023-08-02 17:29:05 +02:00
2023-07-20 06:40:43 +02:00
2023-08-08 22:41:00 +02:00
2023-07-24 23:04:20 +02:00
2023-08-02 16:00:19 +02:00
2023-07-20 06:40:43 +02:00
2023-08-01 09:40:55 +02:00
2023-08-03 19:31:14 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 17:04:26 +02:00
2023-08-09 17:04:26 +02:00
2023-07-19 19:37:55 +02:00
2023-08-09 17:04:26 +02:00
2023-08-09 01:53:07 +02:00
2023-08-02 18:50:17 +02:00
2023-07-19 21:59:57 +02:00
2023-07-19 18:24:15 +02:00
2023-08-02 17:29:05 +02:00
2023-07-20 15:45:05 +02:00
2023-08-03 10:43:49 +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-08-03 18:02:55 +02:00
2023-07-18 09:07:16 +02:00
2023-07-20 17:01:00 +02:00
2023-07-17 13:30:46 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-07-31 23:21:10 +02:00
2023-08-02 17:29:39 +02:00
2023-08-02 18:50:17 +02:00
2023-08-09 11:52:08 +02:00
2023-08-02 18:50:17 +02:00
2023-08-09 14:36:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-08 18:40:52 +02:00
2023-08-08 18:40:52 +02:00
2023-08-08 18:40:52 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-08 08:56:25 +02:00
2023-08-08 18:40:52 +02:00
2023-08-03 12:11:46 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-02 17:29:05 +02:00
2023-08-08 08:56:25 +02:00
2023-08-02 17:29:05 +02:00
2023-07-25 08:18:58 +02:00
2023-08-02 17:29:05 +02:00
2023-08-03 10:43:23 +02:00
2023-08-03 10:43:26 +02:00
2023-07-20 14:23:15 +02:00
2023-07-25 00:54:53 +02:00
2023-08-09 17:04:26 +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-08-02 17:29:05 +02:00
2023-08-09 00:13:08 +02:00
2023-08-02 17:29:05 +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-08-09 00:13:08 +02:00
2023-08-02 17:29:05 +02:00
2023-07-25 17:36:08 +02:00
2023-08-08 21:09:51 +02:00
2023-08-09 03:08:00 +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-08-03 19:31:15 +02:00
2023-07-27 11:58:34 +02:00
2023-07-18 09:07:13 +02:00
2023-08-08 20:07:26 +02:00
2023-08-02 17:29:05 +02:00
2023-08-04 10:59:01 +02:00
2023-07-26 12:00:30 +02:00
2023-08-02 17:29:05 +02:00
2023-07-20 10:07:11 +02:00
2023-08-07 19:57:24 +02:00
2023-07-25 17:36:08 +02:00
2023-08-02 18:50:17 +02:00
2023-08-02 17:29:05 +02:00
2023-08-08 22:41:04 +02:00
2023-08-01 13:51:17 +02:00
2023-08-01 23:52:30 +02:00
2023-08-04 08:25:57 +02:00
2023-08-02 17:29:05 +02:00
2023-08-01 13:51:47 +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-08-02 18:50:17 +02:00
2023-08-09 00:13:08 +02:00
2023-07-31 23:21:10 +02:00
2023-08-03 19:31:23 +02:00
2023-08-09 17:04:26 +02:00
2023-08-02 18:50:17 +02:00
2023-08-02 18:50:18 +02:00
2023-08-03 21:56:56 +02:00
2023-07-24 20:17:50 +02:00
2023-08-07 10:58:48 +02:00
2023-07-27 11:58:34 +02:00
2023-08-03 19:31:23 +02:00
2023-08-01 13:51:17 +02:00
2023-08-09 13:20:46 +02:00
2023-08-09 13:20:57 +02:00
2023-08-09 00:13:08 +02:00
2023-08-07 10:58:48 +02:00
2023-08-09 13:20:57 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-07-18 11:42:26 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-03 19:31:23 +02:00
2023-08-03 19:31:23 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-08-03 19:31:23 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 17:04:11 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 14:36:12 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-08-03 19:31:23 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-09 03:08:07 +02:00
2023-08-09 00:13:08 +02:00
2023-07-27 11:58:34 +02:00
2023-08-02 17:29:05 +02:00
2023-08-07 10:58:52 +02:00
2023-08-02 13:20:23 +02:00
2023-08-09 03:07:43 +02:00
2023-07-18 16:58:43 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00