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.

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