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.

49 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_task_form" model="ir.ui.view">
  4. <field name="model">storage.backend.task</field>
  5. <field name="arch" type="xml">
  6. <form>
  7. <header>
  8. <button name="run_import" type="object" string="Run" class="oe_read_only" icon="fa-play-circle" attrs="{'invisible': ['|', ('method_type', '!=', 'import'), ('enabled','=', False)]}"/>
  9. </header>
  10. <sheet>
  11. <field name="method_type" invisible="1"/>
  12. <div class="oe_title" style="width: 390px;" colspan="4">
  13. <label class="oe_edit_only" for="name" string="Name"/>
  14. <h2>
  15. <field name="name" class="oe_inline"/>
  16. </h2>
  17. </div>
  18. <group>
  19. <field name="enabled"/>
  20. <field name="method_type"/>
  21. <field name="filename" attrs="{'invisible':[('method_type','!=','import')]}"/>
  22. <field name="filepath"/>
  23. </group>
  24. <group name="action" string="Action">
  25. <field name="after_import" attrs="{'invisible':[('method_type','!=','import')]}"/>
  26. <field name="move_path" colspan="4" attrs="{'invisible':['|', '&amp;', ('after_import','!=','move'), ('after_import','!=','move_rename'), ('method_type','!=','import')]}"/>
  27. <field name="new_name" colspan="4" attrs="{'invisible': ['|', '&amp;', ('after_import','!=','rename'), ('after_import','!=','move_rename'), ('method_type','!=','import')]}"/>
  28. </group>
  29. <group string="Data importation setting">
  30. <field name="file_type" attrs="{'invisible':[('method_type','!=','import')]}"/>
  31. </group>
  32. </sheet>
  33. </form>
  34. </field>
  35. </record>
  36. <record id="view_task_tree" model="ir.ui.view">
  37. <field name="model">storage.backend.task</field>
  38. <field name="arch" type="xml">
  39. <tree string="Tasks">
  40. <field name="name" select="1"/>
  41. <field name="method_type"/>
  42. <field name="filename"/>
  43. <field name="filepath"/>
  44. </tree>
  45. </field>
  46. </record>
  47. </odoo>