Files
odoo_source/addons
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-07-19 13:13:16 +02:00
2023-08-01 13:51:17 +02:00
2023-08-01 13:51:17 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 17:04:00 +02:00
2023-07-19 18:24:15 +02:00
2023-08-02 16:00:19 +02:00
2023-08-09 00:13:08 +02:00
2023-07-19 18:24:15 +02:00
2023-08-09 00:13:08 +02:00
2023-08-09 00:13:08 +02:00
2023-07-25 08:18:58 +02:00
2023-08-09 00:13:08 +02:00
2023-07-19 18:24:15 +02:00
2023-08-01 13:51:17 +02:00
2023-08-09 00:13:08 +02:00
…
2023-08-01 13:51:17 +02:00
2023-08-09 00:13:08 +02:00