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.

76 lines
2.9 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. <odoo>
  5. <record id="ir_exports_action" model="ir.actions.act_window">
  6. <field name="name">Export Profiles</field>
  7. <field name="res_model">ir.exports</field>
  8. <field name="view_type">form</field>
  9. <field name="view_mode">tree,form</field>
  10. </record>
  11. <menuitem id="ir_exports_menu"
  12. parent="base.next_id_2"
  13. name="Export Profiles"
  14. action="ir_exports_action"/>
  15. <record id="ir_exports_tree_view" model="ir.ui.view">
  16. <field name="name">Export Profile tree</field>
  17. <field name="model">ir.exports</field>
  18. <field name="arch" type="xml">
  19. <tree string="Export Profiles">
  20. <field name="name"/>
  21. <field name="model_id"/>
  22. <field name="resource"/>
  23. </tree>
  24. </field>
  25. </record>
  26. <record id="ir_exports_form_view" model="ir.ui.view">
  27. <field name="name">Export Profile form</field>
  28. <field name="model">ir.exports</field>
  29. <field name="arch" type="xml">
  30. <form string="Export Profile">
  31. <group>
  32. <field name="name"/>
  33. <field name="model_id"
  34. options="{'no_create': True}"/>
  35. <field name="resource"/>
  36. </group>
  37. <group>
  38. <field name="export_fields" nolabel="1"
  39. context="{'default_model1_id': model_id}">
  40. <tree editable="bottom">
  41. <field name="sequence" widget="handle"/>
  42. <field name="model1_id" invisible="True"/>
  43. <field name="model2_id" invisible="True"/>
  44. <field name="model3_id" invisible="True"/>
  45. <field name="model4_id" invisible="True"/>
  46. <field name="label"/>
  47. <field name="name"/>
  48. <field
  49. name="field1_id"
  50. required="True"
  51. options="{'no_open': True, 'no_create': True}"/>
  52. <field
  53. name="field2_id"
  54. attrs="{'readonly': [('model2_id', '=', False)]}"
  55. options="{'no_open': True, 'no_create': True}"/>
  56. <field
  57. name="field3_id"
  58. attrs="{'readonly': [('model3_id', '=', False)]}"
  59. options="{'no_open': True, 'no_create': True}"/>
  60. <field
  61. name="field4_id"
  62. attrs="{'readonly': [('model3_id', '=', False)]}"
  63. options="{'no_open': True, 'no_create': True}"/>
  64. </tree>
  65. </field>
  66. </group>
  67. </form>
  68. </field>
  69. </record>
  70. </odoo>