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.

56 lines
3.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_email_server_form">
  5. <field name="name">fetchmail.server.form</field>
  6. <field name="model">fetchmail.server</field>
  7. <field name="inherit_id" ref="fetchmail.view_email_server_form" />
  8. <field name="arch" type="xml">
  9. <data>
  10. <field name="object_id" position="attributes">
  11. <attribute name="attrs">{'required': [('type', '!=', 'imap')]}</attribute>
  12. </field>
  13. <xpath expr="//page[@string='Server &amp; Login']/group/group[3]" position="after">
  14. <group attrs="{'invisible': [('type','!=','imap')]}" string="Folders to monitor">
  15. <field
  16. name="folder_ids"
  17. nolabel="1"
  18. on_change="onchange_server_type(type, is_ssl, object_id)">
  19. <tree>
  20. <field name="sequence" invisible="1" />
  21. <field name="path" />
  22. <field name="model_id" />
  23. <field name="model_field" />
  24. <field name="match_algorithm" />
  25. <field name="mail_field" />
  26. </tree>
  27. <form version="7.0">
  28. <header>
  29. <button type="object" name="button_attach_mail_manually" string="Attach mail manually" icon="gtk-redo" />
  30. </header>
  31. <group>
  32. <group>
  33. <field name="path" placeholder="INBOX.subfolder1" />
  34. <field name="model_id" />
  35. <field name="model_field" placeholder="email" />
  36. <field name="match_algorithm" />
  37. <field name="mail_field" placeholder="to,from" />
  38. </group>
  39. <group>
  40. <field name="delete_matching" />
  41. <field name="flag_nonmatching" />
  42. <field name="match_first" />
  43. <field name="msg_state" />
  44. <field name="model_order" attrs="{'readonly': [('match_first','==',False)], 'required': [('match_first','==',True)]}" placeholder="name asc,type desc" />
  45. <field name="domain" placeholder="[('state', '=', 'open')]" />
  46. </group>
  47. </group>
  48. </form>
  49. </field>
  50. </group>
  51. </xpath>
  52. </data>
  53. </field>
  54. </record>
  55. </data>
  56. </openerp>