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.

81 lines
3.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <openerp>
  5. <data>
  6. <record model="ir.ui.view" id="view_mail_mass_mailing_sending_tree">
  7. <field name="name">mail.mass_mailing.sending.tree</field>
  8. <field name="model">mail.mass_mailing.sending</field>
  9. <field name="arch" type="xml">
  10. <tree string="Mass mailing sendings">
  11. <field name="mass_mailing_id"/>
  12. <field name="date_start"/>
  13. <field name="state"/>
  14. <field name="pending_count"/>
  15. <field name="sending_count"/>
  16. <field name="sent_count"/>
  17. <field name="failed_count"/>
  18. </tree>
  19. </field>
  20. </record>
  21. <record model="ir.ui.view" id="view_mail_mass_mailing_sending_form">
  22. <field name="name">mail.mass_mailing.sending.form</field>
  23. <field name="model">mail.mass_mailing.sending</field>
  24. <field name="arch" type="xml">
  25. <form string="Mass mailing sending">
  26. <group>
  27. <group>
  28. <field name="mass_mailing_id"/>
  29. <field name="state"/>
  30. <field name="date_start"/>
  31. <field name="date_end"/>
  32. </group>
  33. <group>
  34. <field name="pending_count"/>
  35. <field name="sending_count"/>
  36. <field name="sent_count"/>
  37. <field name="failed_count"/>
  38. </group>
  39. </group>
  40. <group attrs="{'invisible': [('error', '=', False)]}">
  41. <field name="error"/>
  42. </group>
  43. </form>
  44. </field>
  45. </record>
  46. <record model="ir.ui.view" id="view_mail_mass_mailing_sending_search">
  47. <field name="name">mail.mass_mailing.sending.search</field>
  48. <field name="model">mail.mass_mailing.sending</field>
  49. <field name="arch" type="xml">
  50. <search string="Mass mailing sending">
  51. <field name="mass_mailing_id"/>
  52. <filter string="Enqueued" name="enqueued" domain="[('state', '=', 'enqueued')]"/>
  53. <filter string="Sending" name="sending" domain="[('state', '=', 'sending')]"/>
  54. <filter string="Running" name="running" domain="[('state', '!=', 'sent')]"/>
  55. <filter string="Sent" name="sent" domain="[('state', '=' ,'sent')]"/>
  56. <group expand="0" string="Group By">
  57. <filter string="Mass mailing" name="group_mass_mailing" context="{'group_by': 'mass_mailing_id'}"/>
  58. </group>
  59. </search>
  60. </field>
  61. </record>
  62. <record id="action_view_mail_mass_mailing_sending" model="ir.actions.act_window">
  63. <field name="name">Mass mailing sendings</field>
  64. <field name="res_model">mail.mass_mailing.sending</field>
  65. <field name="view_type">form</field>
  66. <field name="view_mode">tree,form</field>
  67. <field name="context">{'search_default_running': 1}</field>
  68. <field name="search_view_id" ref="view_mail_mass_mailing_sending_search"/>
  69. </record>
  70. <menuitem name="Mass mailing sending" id="menu_mass_mailing_sending"
  71. parent="base.menu_email" sequence="60"
  72. action="action_view_mail_mass_mailing_sending"/>
  73. </data>
  74. </openerp>