[FIX] mail_bot_hr: preferences warning duplication

Before this commit:

Once the push notifications have been blocked, click on 'My Profile' displaying
preferences warning twice with a different place inside the form after https://github.com/odoo/odoo/commit/328f6dbc984312049e94413fe9a46284cffcb3cb

After this commit:

A preferences warning will be displayed at the proper place by removing the
primary mode from inherited view and add priority to it.

LINKS

Task-2323263

closes odoo/odoo#56218

X-original-commit: 9983914e2ddc60f6bb55a97a6b6e15e1f9d940d4
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Hiral Bhavsar
2020-08-20 13:34:16 +00:00
parent ce69db55f8
commit 9b8f1d4236
+1 -1
View File
@@ -5,7 +5,7 @@
<field name="name">res.users.preferences.form.simplified.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="hr.res_users_view_form_simple_modif" />
<field name="mode">primary</field>
<field name="priority">15</field>
<field name="arch" type="xml">
<widget name="notification_alert" position="replace" />
</field>