You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.1 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="view_users_form_mail" model="ir.ui.view">
  4. <field name="name">mail_digest res.users notification settings</field>
  5. <field name="model">res.users</field>
  6. <field name="inherit_id" ref="mail.view_users_form_mail"/>
  7. <field name="arch" type="xml">
  8. <field name="notification_type" position="replace">
  9. <group name="notif_left">
  10. <field name="notification_type" widget="radio" readonly="0"/>
  11. <field name="digest_mode" />
  12. <field name="digest_frequency" readonly="0"
  13. attrs="{'invisible': [('digest_mode', '=', False)]}" />
  14. </group>
  15. <group name="notif_right" attrs="{'invisible': [('notification_type','=', 'inbox')]}">
  16. <label string="Enable/disable notifications by type" colspan="4" />
  17. <field name="notify_conf_ids" nolabel="1" colspan="4" readonly="0" />
  18. </group>
  19. </field>
  20. </field>
  21. </record>
  22. <record id="view_users_form_simple_modif_mail" model="ir.ui.view">
  23. <field name="name">mail_digest res.users notification preferences</field>
  24. <field name="model">res.users</field>
  25. <field name="inherit_id" ref="mail.view_users_form_simple_modif_mail"/>
  26. <field name="arch" type="xml">
  27. <field name="notification_type" position="replace">
  28. <group name="notif_left">
  29. <field name="digest_mode" />
  30. <field name="notification_type" widget="radio" readonly="0"/>
  31. <field name="digest_frequency" readonly="0"
  32. attrs="{'invisible': [('digest_mode', '=', False)]}" />
  33. </group>
  34. <group name="notif_right" attrs="{'invisible': [('notification_type','=', 'inbox')]}">
  35. <label string="Enable/disable notifications by type" colspan="4" />
  36. <field name="notify_conf_ids" nolabel="1" colspan="4" readonly="0" />
  37. </group>
  38. </field>
  39. </field>
  40. </record>
  41. </odoo>