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.

86 lines
4.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="view_email_server_form">
  4. <field name="name">fetchmail.server.form</field>
  5. <field name="model">fetchmail.server</field>
  6. <field name="inherit_id" ref="fetchmail.view_email_server_form" />
  7. <field name="arch" type="xml">
  8. <field name="object_id" position="attributes">
  9. <attribute
  10. name="attrs">{'required': [('type', '!=', 'imap')]}</attribute>
  11. </field>
  12. <field name="type" position="after">
  13. <field name="folders_only" />
  14. </field>
  15. <xpath
  16. expr="//notebook"
  17. position="inside">
  18. <page
  19. string="Folders to monitor"
  20. attrs="{'invisible': [('type','!=','imap')]}">
  21. <group>
  22. <field
  23. name="folder_ids"
  24. nolabel="1">
  25. <tree colors="gray:active==False">
  26. <field name="active" invisible="True" />
  27. <field name="sequence" widget="handle" />
  28. <field name="path" />
  29. <field name="model_id" />
  30. <field name="model_field" />
  31. <field name="match_algorithm" />
  32. <field name="mail_field" />
  33. </tree>
  34. <form>
  35. <field name="state" invisible="1" />
  36. <header>
  37. <button
  38. type="object"
  39. name="button_confirm_folder"
  40. string="Test &amp; Confirm"
  41. states="draft"/>
  42. <button
  43. type="object"
  44. name="button_attach_mail_manually"
  45. string="Attach mail manually"
  46. states="done"/>
  47. </header>
  48. <group>
  49. <group>
  50. <field
  51. name="path"
  52. placeholder="INBOX.subfolder1" />
  53. <field name="model_id" />
  54. <field
  55. name="model_field"
  56. placeholder="email" />
  57. <field name="match_algorithm" />
  58. <field
  59. name="mail_field"
  60. placeholder="to,from" />
  61. </group>
  62. <group>
  63. <field name="active" />
  64. <field name="delete_matching" />
  65. <field name="flag_nonmatching" />
  66. <field name="match_first" />
  67. <field name="msg_state" />
  68. <field
  69. name="model_order"
  70. attrs="{'readonly': [('match_first','==',False)], 'required': [('match_first','==',True)]}"
  71. placeholder="name asc,type desc" />
  72. <field
  73. name="domain"
  74. placeholder="[('state', '=', 'open')]" />
  75. </group>
  76. </group>
  77. </form>
  78. </field>
  79. </group>
  80. </page>
  81. </xpath>
  82. </field>
  83. </record>
  84. </odoo>