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.

70 lines
3.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- © 2014-2016 Akretion (http://www.akretion.com)
  5. # @ 2015 Valentin CHEMIERE @ Akretion
  6. @author Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
  7. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  8. <record id="view_task_form" model="ir.ui.view">
  9. <field name="model">external.file.task</field>
  10. <field name="arch" type="xml">
  11. <form string="Tasks" version="7.0">
  12. <header>
  13. <button name="run_import" type="object" string="Run" icon="gtk-execute" attrs="{'invisible': [('method_type', '!=', 'import')]}"/>
  14. <button name="run_export" type="object" string="Run" icon="gtk-execute" attrs="{'invisible': [('method_type', '!=', 'export')]}"/>
  15. </header>
  16. <sheet>
  17. <field name="method_type" invisible="1"/>
  18. <group col="4">
  19. <div class="oe_title" style="width: 390px;" colspan="4">
  20. <label class="oe_edit_only" for="name" string="Name"/>
  21. <h1><field name="name" class="oe_inline"/></h1>
  22. </div>
  23. <field name="method_type" colspan="2"/>
  24. <span colspan="2"/>
  25. <field name="filename" colspan="4" attrs="{'invisible':[('method_type','!=','import')], 'required':[('method_type', '=', 'import')]}"/>
  26. <field name="filepath" colspan="4" />
  27. <field name="company_id" colspan="4"/>
  28. </group>
  29. <group col="6">
  30. <field name="after_import" attrs="{'invisible':[('method_type','!=','import')]}"/>
  31. <group col="4" colspan="4" >
  32. <field name="move_path" colspan="4"
  33. attrs="{'invisible':['|', '&amp;',
  34. ('after_import','!=','move'),
  35. ('after_import','!=','move_rename'),
  36. ('method_type','!=','import')]}"/>
  37. <field name="new_name" colspan="4"
  38. attrs="{'invisible': ['|', '&amp;',
  39. ('after_import','!=','rename'),
  40. ('after_import','!=','move_rename'),
  41. ('method_type','!=','import')]}"/>
  42. </group>
  43. <field name="md5_check" colspan="2"
  44. attrs="{'invisible':
  45. [('method_type','!=','import')]}"
  46. />
  47. <field name="active" colspan="2"/>
  48. </group>
  49. <group string="Data importation setting">
  50. <field name="file_type" attrs="{'invisible':[('method_type','!=','import')]}"/>
  51. </group>
  52. </sheet>
  53. </form>
  54. </field>
  55. </record>
  56. <record id="view_task_tree" model="ir.ui.view">
  57. <field name="model">external.file.task</field>
  58. <field name="arch" type="xml">
  59. <tree string="Tasks" >
  60. <field name="name" select="1"/>
  61. <field name="method_type"/>
  62. <field name="filename"/>
  63. <field name="filepath"/>
  64. </tree>
  65. </field>
  66. </record>
  67. </data>
  68. </openerp>