mail_server_source_views.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_mail_server_source_tree" model="ir.ui.view">
  5. <field name="name">mail.server.source.list</field>
  6. <field name="model">mail.server.source</field>
  7. <field name="arch" type="xml">
  8. <tree string="Source">
  9. <field name="name"/>
  10. <field name="type"/>
  11. <field name="is_ssl"/>
  12. <field name="server"/>
  13. <field name="port"/>
  14. <field name="state" invisible="1"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="view_mail_server_source_form" model="ir.ui.view">
  19. <field name="name">mail.server.source.form</field>
  20. <field name="model">mail.server.source</field>
  21. <field name="arch" type="xml">
  22. <form string="Incoming Mail Server" edit="0">
  23. <sheet>
  24. <group col="4">
  25. <field name="name"/>
  26. <field name="state" invisible="1"/>
  27. </group>
  28. <group string="Server Information">
  29. <group>
  30. <field name="type"/>
  31. <field name="is_ssl"/>
  32. </group>
  33. <group>
  34. <field name="server" colspan="2" attrs="{'required' : [('type', '!=', 'local')]}" />
  35. <field name="port" required="1" attrs="{'required' : [('type', '!=', 'local')]}" />
  36. </group>
  37. </group>
  38. </sheet>
  39. </form>
  40. </field>
  41. </record>
  42. <record id="view_mail_server_source_search" model="ir.ui.view">
  43. <field name="name">mail.server.source.search</field>
  44. <field name="model">mail.server.source</field>
  45. <field name="arch" type="xml">
  46. <search string="Search Mail Servers">
  47. <field name="name" string="Mail Server"/>
  48. </search>
  49. </field>
  50. </record>
  51. <record id="action_mail_server_source_tree" model="ir.actions.act_window">
  52. <field name="name">Mail Servers</field>
  53. <field name="res_model">mail.server.source</field>
  54. <field name="view_type">form</field>
  55. <field name="view_mode">tree,form</field>
  56. <field name="view_id" ref="view_mail_server_source_tree"/>
  57. <field name="search_view_id" ref="view_mail_server_source_search"/>
  58. </record>
  59. <menuitem id="menu_setting" name="Settings" parent="menu_email_root"/>
  60. <menuitem
  61. parent="menu_setting"
  62. id="menu_action_mail_server_source_tree"
  63. action="action_mail_server_source_tree"
  64. name="Source"
  65. sequence="14"
  66. groups="base.group_user"
  67. />
  68. </data>
  69. </openerp>