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.

46 lines
2.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_task_form" model="ir.ui.view">
  5. <field name="model">external.file.task</field>
  6. <field name="arch" type="xml">
  7. <form string="Tasks" version="7.0">
  8. <header>
  9. <button name="run" type="object" string="Run" icon="gtk-execute"/>
  10. </header>
  11. <sheet>
  12. <field name="method_type" invisible="1"/>
  13. <group col="4">
  14. <div class="oe_title" style="width: 390px;" colspan="4">
  15. <label class="oe_edit_only" for="name" string="Name"/>
  16. <h1><field name="name" class="oe_inline"/></h1>
  17. </div>
  18. <field name="method" colspan="2"/>
  19. <span colspan="2"/>
  20. <field name="filename" colspan="4" attrs="{'invisible':[('method_type','!=','import')], 'required':[('method_type', '=', 'import')]}"/>
  21. <field name="filepath" colspan="4" />
  22. <field name="after_import" colspan="2" attrs="{'invisible':[('method_type','!=','import')]}"/>
  23. <field name="move_path" colspan="2" attrs="{'invisible':['|', ('after_import','!=','move'), ('method_type','!=','import')]}"/>
  24. <field name="md5_check" colspan="2" attrs="{'invisible':[('method_type','!=','import')]}"/>
  25. </group>
  26. </sheet>
  27. </form>
  28. </field>
  29. </record>
  30. <record id="view_task_tree" model="ir.ui.view">
  31. <field name="model">external.file.task</field>
  32. <field name="arch" type="xml">
  33. <tree string="Tasks" >
  34. <field name="name" select="1"/>
  35. <field name="method"/>
  36. <field name="filename"/>
  37. <field name="filepath"/>
  38. <button name="run" type="object" string="Run" icon="gtk-execute"/>
  39. </tree>
  40. </field>
  41. </record>
  42. </data>
  43. </openerp>