PURPOSE Purpose of this commit is to add a company field on test mail models used to replicate ticket / project behavior (``mail.test.ticket`` and ``mail.test. container``). SPECIFICATIONS To avoid messing with existing tests and ease comparison through all Odoo versions (notably performance) this is done by adding new models inheriting from current mail models. A company_id field is added as well as MC rules. Those models will be used to add tests for mail thread behavior in a multi company environment (aliases management, performance, emails and notification layouts, ...). In this commit we also update ACLs for ticket-like models to add rules for portal users, based on followers. This mimics classic rules from Odoo used notably in a light project-like environment. This allows to test a bit more in details recipients, access tokens, links in emails, ... Task-2673913 (TestMail: Cleanup and improve test coverage) Part-of: odoo/odoo#86393
3.3 KiB
3.3 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 | 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_simple_portal | mail.test.simple.portal | model_mail_test_simple | base.group_portal | 1 | 0 | 0 | 0 |
| 5 | access_mail_test_simple_user | mail.test.simple.user | model_mail_test_simple | base.group_user | 1 | 1 | 1 | 1 |
| 6 | access_mail_test_gateway_portal | mail.test.gateway.portal | model_mail_test_gateway | base.group_portal | 1 | 0 | 0 | 0 |
| 7 | access_mail_test_gateway_user | mail.test.gateway.user | model_mail_test_gateway | base.group_user | 1 | 1 | 1 | 1 |
| 8 | access_mail_test_track_portal | mail.test.track.portal | model_mail_test_track | base.group_portal | 0 | 0 | 0 | 0 |
| 9 | access_mail_test_track_user | mail.test.track.user.employee | model_mail_test_track | base.group_user | 1 | 1 | 1 | 1 |
| 10 | access_mail_test_activity_portal | mail.test.activity.portal | model_mail_test_activity | base.group_portal | 1 | 0 | 0 | 0 |
| 11 | access_mail_test_activity_user | mail.test.activity.user | model_mail_test_activity | base.group_user | 1 | 1 | 1 | 1 |
| 12 | access_mail_test_field_type_portal | mail.test.field.type.portal | model_mail_test_field_type | base.group_portal | 0 | 0 | 0 | 0 |
| 13 | access_mail_test_field_type_user | mail.test.field.type.user | model_mail_test_field_type | base.group_user | 1 | 1 | 1 | 1 |
| 14 | access_mail_test_ticket_portal | mail.test.ticket.portal | model_mail_test_ticket | base.group_portal | 1 | 0 | 0 | 0 |
| 15 | access_mail_test_ticket_user | mail.test.ticket.user | model_mail_test_ticket | base.group_user | 1 | 1 | 1 | 1 |
| 16 | access_mail_test_ticket_mc_portal | mail.test.ticket.mc.portal | model_mail_test_ticket_mc | base.group_portal | 1 | 0 | 0 | 0 |
| 17 | access_mail_test_ticket_mc_user | mail.test.ticket.mc.user | model_mail_test_ticket_mc | base.group_user | 1 | 1 | 1 | 1 |
| 18 | access_mail_test_composer_mixin_all | mail.test.composer.mixin.all | model_mail_test_composer_mixin | 0 | 0 | 0 | 0 | |
| 19 | access_mail_test_composer_mixin_user | mail.test.composer.mixin.user | model_mail_test_composer_mixin | base.group_user | 1 | 1 | 1 | 1 |
| 20 | access_mail_test_container_portal | mail.test.container_portal | model_mail_test_container | base.group_portal | 1 | 0 | 0 | 0 |
| 21 | access_mail_test_container_user | mail.test.container.user | model_mail_test_container | base.group_user | 1 | 1 | 1 | 1 |
| 22 | access_mail_test_container_mc_portal | mail.test.container.mc.portal | model_mail_test_container_mc | base.group_portal | 1 | 0 | 0 | 0 |
| 23 | access_mail_test_container_mc_user | mail.test.container.mc.user | model_mail_test_container_mc | base.group_user | 1 | 1 | 1 | 1 |
| 24 | access_mail_test_cc_portal | mail.test.cc.portal | model_mail_test_cc | base.group_portal | 1 | 0 | 0 | 0 |
| 25 | access_mail_test_cc_user | mail.test.cc.user | model_mail_test_cc | base.group_user | 1 | 1 | 1 | 1 |
| 26 | access_mail_test_lang_portal | mail.test.lang.portal | model_mail_test_lang | base.group_portal | 1 | 0 | 0 | 0 |
| 27 | access_mail_test_lang_user | mail.test.lang.user | model_mail_test_lang | base.group_user | 1 | 1 | 1 | 1 |
| 28 | access_mail_test_multi_company_user | mail.test.multi.company.user | model_mail_test_multi_company | base.group_user | 1 | 1 | 1 | 1 |
| 29 | access_mail_test_multi_company_portal | mail.test.multi.company.portal | model_mail_test_multi_company | base.group_portal | 1 | 0 | 0 | 0 |
| 30 | access_mail_test_track_compute | mail.test.track.compute | model_mail_test_track_compute | base.group_user | 1 | 1 | 1 | 1 |
| 31 | access_mail_test_track_monetary | mail.test.track.monetary | model_mail_test_track_monetary | base.group_user | 1 | 1 | 1 | 1 |
| 32 | access_mail_test_track_all | mail.test.track.all | model_mail_test_track_all | base.group_user | 1 | 1 | 1 | 1 |