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.

41 lines
2.0 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="notify_email" position="replace">
  9. <group name="notif_left">
  10. <field name="notify_email" widget="radio" readonly="0"/>
  11. <field name="notify_frequency" readonly="0"
  12. attrs="{'invisible': [('notify_email', '!=', 'digest')]}" />
  13. </group>
  14. <group name="notif_right" attrs="{'invisible': [('notify_email','=', 'none')]}">
  15. <label string="Enable/disable notifications by type" colspan="4" />
  16. <field name="notify_conf_ids" nolabel="1" colspan="4" readonly="0" />
  17. </group>
  18. </field>
  19. </field>
  20. </record>
  21. <record id="view_users_form_simple_modif_mail" model="ir.ui.view">
  22. <field name="name">mail_digest res.users notification preferences</field>
  23. <field name="model">res.users</field>
  24. <field name="inherit_id" ref="mail.view_users_form_simple_modif_mail"/>
  25. <field name="arch" type="xml">
  26. <field name="notify_email" position="replace">
  27. <group name="notif_left">
  28. <field name="notify_email" widget="radio" readonly="0"/>
  29. <field name="notify_frequency" readonly="0"
  30. attrs="{'invisible': [('notify_email', '!=', 'digest')]}" />
  31. </group>
  32. <group name="notif_right" attrs="{'invisible': [('notify_email','=', 'none')]}">
  33. <label string="Enable/disable notifications by type" colspan="4" />
  34. <field name="notify_conf_ids" nolabel="1" colspan="4" readonly="0" />
  35. </group>
  36. </field>
  37. </field>
  38. </record>
  39. </odoo>