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.

77 lines
3.0 KiB

9 years ago
  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="model4_id" invisible="True"/>
  47. <field name="label"/>
  48. <field name="name"/>
  49. <field
  50. name="field1_id"
  51. required="True"
  52. options="{'no_open': True, 'no_create': True}"/>
  53. <field
  54. name="field2_id"
  55. attrs="{'readonly': [('model2_id', '=', False)]}"
  56. options="{'no_open': True, 'no_create': True}"/>
  57. <field
  58. name="field3_id"
  59. attrs="{'readonly': [('model3_id', '=', False)]}"
  60. options="{'no_open': True, 'no_create': True}"/>
  61. <field
  62. name="field4_id"
  63. attrs="{'readonly': [('model3_id', '=', False)]}"
  64. options="{'no_open': True, 'no_create': True}"/>
  65. </tree>
  66. </field>
  67. </group>
  68. </form>
  69. </field>
  70. </record>
  71. </data>
  72. </openerp>