diff options
| author | Juhil Somaiya <jso@odoo.com> | 2019-01-23 09:32:01 +0000 |
|---|---|---|
| committer | Juhil Somaiya <jso@odoo.com> | 2019-02-15 09:05:54 +0000 |
| commit | 02eebe15cd895b54f45cbcef1affcaa61ec8577c (patch) | |
| tree | 85d7ddee92dbe048aabf43243a0e2c949ad516db /addons/mail_bot/views/res_users_views.xml | |
| parent | b35d103cc0fe64547c3212ef01ab329faf0bacc4 (diff) | |
[IMP] mail_bot: Blocked notification alert to User
If user has blocked odoo push notifications
then there's no way to enable via the OdooBot notification in the systray as it depends on the navigator
so display the alert message under users preference section.
Related Task ID: 1929547
closes odoo/odoo#30496
Diffstat (limited to 'addons/mail_bot/views/res_users_views.xml')
| -rw-r--r-- | addons/mail_bot/views/res_users_views.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/addons/mail_bot/views/res_users_views.xml b/addons/mail_bot/views/res_users_views.xml index 066ae58bd48..296e5380485 100644 --- a/addons/mail_bot/views/res_users_views.xml +++ b/addons/mail_bot/views/res_users_views.xml @@ -27,4 +27,17 @@ </data> </field> </record> -</data></odoo>
\ No newline at end of file + + <!-- Blocked notification alert --> + <record id="view_users_form_inherit_mail_notification_alert" model="ir.ui.view"> + <field name="name">res.users.preferences.form.notification.alert</field> + <field name="model">res.users</field> + <field name="inherit_id" ref="base.view_users_form_simple_modif"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='image']" position="before"> + <widget name="notification_alert"/> + </xpath> + </field> + </record> + +</data></odoo> |
