Some models would like to use the 'mail.alias.mixin' but it creates an alias for each record in the parent model. This leads to a lot of unused aliases if only a subset of those records really use aliases i.e. a lot of aliases with 'alias_name' being 'False'. In this commit we introduce a new mixin 'mail.alias.mixin.optional' that behaves like the old 'mail.alias.mixin' but without having the 'alias_id' field required i.e. without the "inherits". When creating a record without giving an 'alias_name' no alias is created. In future commit, we plan to use it notably to remove custom code in account journal model and make it more standard. Using it in more models will be done later, but it is a candidate to cleanup unused aliases related to discuss channel model. Task-3453343 (Mail: Cleanup Alias Usage) Prepares Task-36879 (Mail: Support MultiCompany Aliases) Part-of: odoo/odoo#130632
6.1 KiB
6.1 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_mail_performance_thread | access_mail_performance_thread | model_mail_performance_thread | base.group_user | 1 | 1 | 1 | 1 |
| 3 | access_mail_performance_tracking_user | mail.performance.tracking | model_mail_performance_tracking | base.group_user | 1 | 1 | 1 | 1 |
| 4 | access_mail_test_alias_optional_portal | mail.test.alias.optional.portal | model_mail_test_alias_optional | base.group_portal | 1 | 0 | 0 | 0 |
| 5 | access_mail_test_alias_optional_user | mail.test.alias.optional.user | model_mail_test_alias_optional | base.group_user | 1 | 1 | 1 | 1 |
| 6 | access_mail_test_simple_portal | mail.test.simple.portal | model_mail_test_simple | base.group_portal | 1 | 0 | 0 | 0 |
| 7 | access_mail_test_simple_user | mail.test.simple.user | model_mail_test_simple | base.group_user | 1 | 1 | 1 | 1 |
| 8 | access_mail_test_simple_unfollow_portal | mail.test.simple.unfollow.portal | model_mail_test_simple_unfollow | base.group_portal | 0 | 0 | 0 | 0 |
| 9 | access_mail_test_simple_unfollow_user | mail.test.simple.unfollow.user | model_mail_test_simple_unfollow | base.group_user | 1 | 1 | 1 | 1 |
| 10 | access_mail_test_simple_main_attachment_portal | mail.test.simple.main.attachment.portal | model_mail_test_simple_main_attachment | base.group_portal | 1 | 0 | 0 | 0 |
| 11 | access_mail_test_simple_main_attachment_user | mail.test.simple.main.attachment.user | model_mail_test_simple_main_attachment | base.group_user | 1 | 1 | 1 | 1 |
| 12 | access_mail_test_gateway_portal | mail.test.gateway.portal | model_mail_test_gateway | base.group_portal | 1 | 0 | 0 | 0 |
| 13 | access_mail_test_gateway_user | mail.test.gateway.user | model_mail_test_gateway | base.group_user | 1 | 1 | 1 | 1 |
| 14 | access_mail_test_gateway_groups_portal | mail.test.gateway.groups.portal | model_mail_test_gateway_groups | base.group_portal | 1 | 0 | 0 | 0 |
| 15 | access_mail_test_gateway_groups_user | mail.test.gateway.groups.user | model_mail_test_gateway_groups | base.group_user | 1 | 1 | 1 | 1 |
| 16 | access_mail_test_track_portal | mail.test.track.portal | model_mail_test_track | base.group_portal | 0 | 0 | 0 | 0 |
| 17 | access_mail_test_track_user | mail.test.track.user.employee | model_mail_test_track | base.group_user | 1 | 1 | 1 | 1 |
| 18 | access_mail_test_activity_portal | mail.test.activity.portal | model_mail_test_activity | base.group_portal | 1 | 0 | 0 | 0 |
| 19 | access_mail_test_activity_user | mail.test.activity.user | model_mail_test_activity | base.group_user | 1 | 1 | 1 | 1 |
| 20 | access_mail_test_field_type_portal | mail.test.field.type.portal | model_mail_test_field_type | base.group_portal | 0 | 0 | 0 | 0 |
| 21 | access_mail_test_field_type_user | mail.test.field.type.user | model_mail_test_field_type | base.group_user | 1 | 1 | 1 | 1 |
| 22 | access_mail_test_ticket_portal | mail.test.ticket.portal | model_mail_test_ticket | base.group_portal | 1 | 0 | 0 | 0 |
| 23 | access_mail_test_ticket_user | mail.test.ticket.user | model_mail_test_ticket | base.group_user | 1 | 1 | 1 | 1 |
| 24 | access_mail_test_ticket_el_portal | mail.test.ticket.el.portal | model_mail_test_ticket_el | base.group_portal | 1 | 0 | 0 | 0 |
| 25 | access_mail_test_ticket_el_user | mail.test.ticket.el.user | model_mail_test_ticket_el | base.group_user | 1 | 1 | 1 | 1 |
| 26 | access_mail_test_ticket_mc_portal | mail.test.ticket.mc.portal | model_mail_test_ticket_mc | base.group_portal | 1 | 0 | 0 | 0 |
| 27 | access_mail_test_ticket_mc_user | mail.test.ticket.mc.user | model_mail_test_ticket_mc | base.group_user | 1 | 1 | 1 | 1 |
| 28 | access_mail_test_composer_mixin_all | mail.test.composer.mixin.all | model_mail_test_composer_mixin | 0 | 0 | 0 | 0 | |
| 29 | access_mail_test_composer_mixin_user | mail.test.composer.mixin.user | model_mail_test_composer_mixin | base.group_user | 1 | 1 | 1 | 1 |
| 30 | access_mail_test_composer_source_all | mail.test.composer.source.all | model_mail_test_composer_source | base.group_user | 1 | 0 | 0 | 0 |
| 31 | access_mail_test_composer_source_user | mail.test.composer.source.user | model_mail_test_composer_source | base.group_user | 1 | 1 | 1 | 1 |
| 32 | access_mail_test_container_portal | mail.test.container_portal | model_mail_test_container | base.group_portal | 1 | 0 | 0 | 0 |
| 33 | access_mail_test_container_user | mail.test.container.user | model_mail_test_container | base.group_user | 1 | 1 | 1 | 1 |
| 34 | access_mail_test_container_mc_portal | mail.test.container.mc.portal | model_mail_test_container_mc | base.group_portal | 1 | 0 | 0 | 0 |
| 35 | access_mail_test_container_mc_user | mail.test.container.mc.user | model_mail_test_container_mc | base.group_user | 1 | 1 | 1 | 1 |
| 36 | access_mail_test_cc_portal | mail.test.cc.portal | model_mail_test_cc | base.group_portal | 1 | 0 | 0 | 0 |
| 37 | access_mail_test_cc_user | mail.test.cc.user | model_mail_test_cc | base.group_user | 1 | 1 | 1 | 1 |
| 38 | access_mail_test_lang_portal | mail.test.lang.portal | model_mail_test_lang | base.group_portal | 1 | 0 | 0 | 0 |
| 39 | access_mail_test_lang_user | mail.test.lang.user | model_mail_test_lang | base.group_user | 1 | 1 | 1 | 1 |
| 40 | access_mail_test_multi_company_user | mail.test.multi.company.user | model_mail_test_multi_company | base.group_user | 1 | 1 | 1 | 1 |
| 41 | access_mail_test_multi_company_portal | mail.test.multi.company.portal | model_mail_test_multi_company | base.group_portal | 1 | 0 | 0 | 0 |
| 42 | access_mail_test_multi_company_read_user | mail.test.multi.company.read.user | model_mail_test_multi_company_read | base.group_user | 1 | 1 | 1 | 1 |
| 43 | access_mail_test_multi_company_read_portal | mail.test.multi.company.read.portal | model_mail_test_multi_company_read | base.group_portal | 1 | 0 | 0 | 0 |
| 44 | access_mail_test_multi_company_with_activity_user | mail.test.multi.company.with.activity.user | model_mail_test_multi_company_with_activity | base.group_user | 1 | 1 | 1 | 1 |
| 45 | access_mail_test_multi_company_with_activity_portal | mail.test.multi.company.with.activity.portal | model_mail_test_multi_company_with_activity | base.group_portal | 1 | 0 | 0 | 0 |
| 46 | access_mail_test_nothread_user | mail.test.nothread.user | model_mail_test_nothread | base.group_user | 1 | 1 | 1 | 1 |
| 47 | access_mail_test_nothread_portal | mail.test.nothread.portal | model_mail_test_nothread | base.group_portal | 1 | 0 | 0 | 0 |
| 48 | access_mail_test_track_all | mail.test.track.all | model_mail_test_track_all | base.group_user | 1 | 1 | 1 | 1 |
| 49 | access_mail_test_track_compute | mail.test.track.compute | model_mail_test_track_compute | base.group_user | 1 | 1 | 1 | 1 |
| 50 | access_mail_test_track_monetary | mail.test.track.monetary | model_mail_test_track_monetary | base.group_user | 1 | 1 | 1 | 1 |
| 51 | access_mail_test_track_selection_portal | mail.test.track.selection.portal | model_mail_test_track_selection | base.group_portal | 0 | 0 | 0 | 0 |
| 52 | access_mail_test_track_selection_user | mail.test.track.selection.user | model_mail_test_track_selection | base.group_user | 1 | 1 | 1 | 1 |
| 53 | access_mail_test_properties_user | mail.test.properties.user | model_mail_test_properties | base.group_user | 1 | 1 | 1 | 1 |
| 54 | access_mail_test_mail_tracking_duration | mail.test.mail.tracking.duration | model_mail_test_mail_tracking_duration | base.group_user | 1 | 1 | 1 | 1 |