fetchmail_server_views.xml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <openerp>
  3. <data>
  4. <record id="view_email_server_inbox_tree" model="ir.ui.view">
  5. <field name="name">fetchmail.server.inbox.list</field>
  6. <field name="model">fetchmail.server.inbox</field>
  7. <field name="arch" type="xml">
  8. <tree decoration-info="state == 'draft'" string="POP/IMAP Servers">
  9. <field name="source_id"/>
  10. <field name="name"/>
  11. <field name="user"/>
  12. <field name="date"/>
  13. <field name="state"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_email_server_inbox_form" model="ir.ui.view">
  18. <field name="name">fetchmail.server.inbox.form</field>
  19. <field name="model">fetchmail.server.inbox</field>
  20. <field name="arch" type="xml">
  21. <form string="Incoming Mail Server">
  22. <header attrs="{'invisible' : [('type', '=', 'local')]}">
  23. <button string="Test &amp; Confirm" type="object" name="button_confirm_login" states="draft"/>
  24. <button string="Fetch Now" type="object" name="fetch_mail" states="done"/>
  25. <button string="Reset Confirmation" type="object" name="set_draft" states="done"/>
  26. <field name="state" widget="statusbar"/>
  27. </header>
  28. <sheet>
  29. <group col="4">
  30. <field name="name"/>
  31. <field name="source_id" required="True"/>
  32. <field name="type" invisible="1"/>
  33. </group>
  34. <group>
  35. <group string="Login Information">
  36. <field name="user" required="True"/>
  37. <field name="password" required="True" password="True"/>
  38. <field name="date"/>
  39. </group>
  40. </group>
  41. </sheet>
  42. </form>
  43. </field>
  44. </record>
  45. <record id="view_email_server_inbox_search" model="ir.ui.view">
  46. <field name="name">fetchmail.server.inbox.search</field>
  47. <field name="model">fetchmail.server.inbox</field>
  48. <field name="arch" type="xml">
  49. <search string="Search Incoming Mail Servers">
  50. <field name="name" string="Incoming Mail Server"/>
  51. <filter string="IMAP" domain="[('type','=','imap')]" help="Server type IMAP."/>
  52. <filter string="POP" domain="[('type','=','pop')]" help="Server type POP."/>
  53. <separator/>
  54. <filter string="SSL" domain="[('is_ssl','=',True)]" help="If SSL required."/>
  55. </search>
  56. </field>
  57. </record>
  58. <record id="action_email_server_inbox_tree" model="ir.actions.act_window">
  59. <field name="name">Mail Servers</field>
  60. <field name="res_model">fetchmail.server.inbox</field>
  61. <field name="view_type">form</field>
  62. <field name="view_mode">tree,form</field>
  63. <field name="context">{}</field>
  64. <field name="view_id" ref="view_email_server_inbox_tree"/>
  65. <field name="search_view_id" ref="view_email_server_inbox_search"/>
  66. </record>
  67. <menuitem id="menu_setting" name="Settings" parent="menu_email_root"/>
  68. <menuitem
  69. parent="menu_setting"
  70. id="menu_action_fetchmail_server_tree"
  71. action="action_email_server_inbox_tree"
  72. name="Mail Servers"
  73. sequence="14"
  74. groups="base.group_user"
  75. />
  76. </data>
  77. </openerp>