mail_resend_message_views.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="mail_resend_message_view_form" model="ir.ui.view">
  5. <field name="name">mail.resend.message.view.form</field>
  6. <field name="model">mail.resend.message</field>
  7. <field name="groups_id" eval="[Command.link(ref('base.group_user'))]"/>
  8. <field name="arch" type="xml">
  9. <form string="Edit Partners">
  10. <field name="mail_message_id" invisible="1"/>
  11. <field name="notification_ids" invisible="1"/>
  12. <field name="can_resend" invisible="1"/>
  13. <field name="partner_readonly" invisible="1"/>
  14. <field name="partner_ids">
  15. <tree string="Recipient" editable="top" create="0" delete="0">
  16. <field name="name" readonly="1"/>
  17. <field name="email" attrs="{'readonly': [('parent.partner_readonly', '=', True)]}"/>
  18. <field name="message" readonly="1" class="text-wrap"/>
  19. <field name="partner_id" invisible="1"/>
  20. <field name="resend" widget="boolean_toggle"/>
  21. </tree>
  22. </field>
  23. <footer>
  24. <button string="Send &amp; close" name="resend_mail_action" type="object" class="btn-primary o_mail_send"
  25. attrs="{'invisible': [('can_resend', '=', False)]}" data-hotkey="q"/>
  26. <button string="Ignore all" name="cancel_mail_action" type="object" class="btn-primary"
  27. attrs="{'invisible': [('can_resend', '=', True)]}" data-hotkey="w"/>
  28. <button string="Ignore all" name="cancel_mail_action" type="object" class="btn-secondary"
  29. attrs="{'invisible': [('can_resend', '=', False)]}" data-hotkey="w"/>
  30. <button string="Close" class="btn-secondary" special="cancel" data-hotkey="z"/>
  31. </footer>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="mail_resend_message_action" model="ir.actions.act_window">
  36. <field name="name">Sending Failures</field>
  37. <field name="res_model">mail.resend.message</field>
  38. <field name="type">ir.actions.act_window</field>
  39. <field name="view_mode">form</field>
  40. <field name="target">new</field>
  41. </record>
  42. </data>
  43. </odoo>