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.

106 lines
4.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_attachment_queue_form" model="ir.ui.view">
  4. <field name="model">attachment.queue</field>
  5. <field name="inherit_id" ref="base.view_attachment_form"/>
  6. <field name="arch" type="xml">
  7. <xpath expr="/form/*" position="before">
  8. <header>
  9. <button name="run" states="pending,failed"
  10. string="Run" type="object" class="oe_highlight"/>
  11. <button name="set_done" states="pending,failed"
  12. string="Set to Done" type="object"/>
  13. </header>
  14. </xpath>
  15. <field name="url" position="after">
  16. <field name="date_done"/>
  17. <field name="state"/>
  18. <field name="file_type"/>
  19. </field>
  20. <group name="description_group">
  21. <group name="state_message" string="Error" colspan="4">
  22. <field name="state_message" nolabel="1"/>
  23. </group>
  24. </group>
  25. </field>
  26. </record>
  27. <record id="view_attachment_queue_tree" model="ir.ui.view">
  28. <field name="model">attachment.queue</field>
  29. <field name="arch" type="xml">
  30. <tree default_order='create_date desc'>
  31. <field name="name"/>
  32. <field name="datas_fname"/>
  33. <field name="file_type"/>
  34. <field name="type"/>
  35. <field name="create_date"/>
  36. <field name="state"/>
  37. </tree>
  38. </field>
  39. </record>
  40. <record id="view_attachment_queue_search" model="ir.ui.view">
  41. <field name="model">attachment.queue</field>
  42. <field name="arch" type="xml">
  43. <search string="Attachments">
  44. <field name="name" filter_domain="['|', ('name','ilike',self), ('datas_fname','ilike',self)]" string="Attachment"/>
  45. <field name="create_date"/>
  46. <filter name="url"
  47. string="URL"
  48. domain="[('type','=','url')]"/>
  49. <filter name="binary"
  50. string="Binary"
  51. domain="[('type','=','binary')]"/>
  52. <separator/>
  53. <filter name="my_documents_filter"
  54. string="My Document(s)"
  55. domain="[('create_uid','=',uid)]"
  56. help="Filter on my documents"/>
  57. <field name="create_uid"/>
  58. <field name="type"/>
  59. <filter string="Pending" name="pending" domain="[('state', '=', 'pending')]"/>
  60. <filter string="Failed" name="failed" domain="[('state', '=', 'failed')]"/>
  61. <filter string="Done" name="done" domain="[('state', '=', 'done')]"/>
  62. <group expand="0" string="Group By">
  63. <filter string="Owner" name="owner" domain="[]" context="{'group_by':'create_uid'}"/>
  64. <filter string="Type" name="type" domain="[]" context="{'group_by':'type'}" groups="base.group_no_one"/>
  65. <filter string="Company" name="company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
  66. <filter string="Creation Month" name="creation_month" domain="[]" context="{'group_by':'create_date'}"/>
  67. <filter string="State" name="state" domain="[]" context="{'group_by': 'state'}"/>
  68. <filter string="File type" name="file_type" domain="[]" context="{'group_by': 'file_type'}"/>
  69. </group>
  70. </search>
  71. </field>
  72. </record>
  73. <record id="action_attachment_queue" model="ir.actions.act_window">
  74. <field name="name">Attachments Queue</field>
  75. <field name="type">ir.actions.act_window</field>
  76. <field name="res_model">attachment.queue</field>
  77. <field name="view_type">form</field>
  78. <field name="view_mode">tree,form</field>
  79. <field name="view_id" eval="False"/>
  80. <field name="search_view_id" ref="view_attachment_queue_search"/>
  81. </record>
  82. <record id="act_open_attachment_que_view_tree" model="ir.actions.act_window.view">
  83. <field eval="10" name="sequence"/>
  84. <field name="view_mode">tree</field>
  85. <field name="view_id" ref="view_attachment_queue_tree"/>
  86. <field name="act_window_id" ref="action_attachment_queue"/>
  87. </record>
  88. <record id="act_open_attachment_que_view_form" model="ir.actions.act_window.view">
  89. <field eval="10" name="sequence"/>
  90. <field name="view_mode">form</field>
  91. <field name="view_id" ref="view_attachment_queue_form"/>
  92. <field name="act_window_id" ref="action_attachment_queue"/>
  93. </record>
  94. <menuitem id="menu_attachment_queue"
  95. parent="base.next_id_9"
  96. sequence="20"
  97. action="action_attachment_queue"/>
  98. </odoo>