The goal of this revision is to add a group `mail.group_mail_notification_type_inbox` which is granted automatically when the user `notification_type` is set to `Inbox` to be able to easily hide the filter `Unread messages` when the user uses the `Email` notification type, by simply adding `groups="mail.group_mail_notification_type_inbox"` on the filter rather than overriding `_get_view` in every model. The code overriding `_get_view` of `project.task` to hide the filter "Unread messages" replaced in this revision initially comes from odoo/odoo@da868d28e2 > - In project.task search View: > - the filter for unread messages should be visible only if the current user > managing his notifications in Odoo The above revision was part of the task 2844212 closes odoo/odoo#104328 Related: odoo/enterprise#33338 Related: odoo/upgrade#3996 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
26 lines
958 B
XML
26 lines
958 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="group_mail_template_editor" model="res.groups">
|
|
<field name="name">Mail Template Editor</field>
|
|
<field name="category_id" ref="base.module_category_hidden"/>
|
|
</record>
|
|
|
|
<record id="base.group_system" model="res.groups">
|
|
<field name="implied_ids" eval="[(4, ref('mail.group_mail_template_editor'))]"/>
|
|
</record>
|
|
|
|
<!-- By default, allow all users to edit mail templates -->
|
|
<record id="base.group_user" model="res.groups">
|
|
<field name="implied_ids" eval="[(4, ref('mail.group_mail_template_editor'))]"/>
|
|
</record>
|
|
|
|
<!-- Group used for the notification_type field of res.users -->
|
|
<record id="group_mail_notification_type_inbox" model="res.groups">
|
|
<field name="name">Receive notifications in Odoo</field>
|
|
<field name="category_id" ref="base.module_category_hidden"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|