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.

85 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <openerp>
  5. <data>
  6. <record id="ir_exports_action" model="ir.actions.act_window">
  7. <field name="name">Export Profiles</field>
  8. <field name="res_model">ir.exports</field>
  9. <field name="view_type">form</field>
  10. <field name="view_mode">tree,form</field>
  11. </record>
  12. <menuitem id="ir_exports_menu"
  13. parent="base.next_id_2"
  14. name="Export Profiles"
  15. action="ir_exports_action"/>
  16. <record id="ir_exports_tree_view" model="ir.ui.view">
  17. <field name="name">Export Profile tree</field>
  18. <field name="model">ir.exports</field>
  19. <field name="arch" type="xml">
  20. <tree string="Export Profiles">
  21. <field name="name"/>
  22. <field name="model_id"/>
  23. <field name="resource"/>
  24. </tree>
  25. </field>
  26. </record>
  27. <record id="ir_exports_form_view" model="ir.ui.view">
  28. <field name="name">Export Profile form</field>
  29. <field name="model">ir.exports</field>
  30. <field name="arch" type="xml">
  31. <form string="Export Profile">
  32. <group>
  33. <field name="name"/>
  34. <field name="model_id"
  35. options="{'no_create': True}"/>
  36. <field name="resource"/>
  37. </group>
  38. <group>
  39. <field name="export_fields" nolabel="1"
  40. context="{'default_model1_id': model_id}">
  41. <tree editable="bottom">
  42. <field name="sequence" widget="handle"/>
  43. <field name="model1_id" invisible="True"/>
  44. <field name="model2_id" invisible="True"/>
  45. <field name="model3_id" invisible="True"/>
  46. <field name="label"/>
  47. <field name="name"/>
  48. <field
  49. name="field1_id"
  50. required="True"
  51. options="{
  52. 'no_open': True,
  53. 'no_create': True,
  54. }"/>
  55. <field
  56. name="field2_id"
  57. attrs="{
  58. 'readonly': [('model2_id', '=', False)],
  59. }"
  60. options="{
  61. 'no_open': True,
  62. 'no_create': True,
  63. }"/>
  64. <field
  65. name="field3_id"
  66. attrs="{
  67. 'readonly': [('model3_id', '=', False)],
  68. }"
  69. options="{
  70. 'no_open': True,
  71. 'no_create': True,
  72. }"/>
  73. </tree>
  74. </field>
  75. </group>
  76. </form>
  77. </field>
  78. </record>
  79. </data>
  80. </openerp>