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.

84 lines
3.0 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. <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="label"/>
  46. <field name="name"/>
  47. <field
  48. name="field1_id"
  49. required="True"
  50. options="{
  51. 'no_open': True,
  52. 'no_create': True,
  53. }"/>
  54. <field
  55. name="field2_id"
  56. attrs="{
  57. 'readonly': [('model2_id', '=', False)],
  58. }"
  59. options="{
  60. 'no_open': True,
  61. 'no_create': True,
  62. }"/>
  63. <field
  64. name="field3_id"
  65. attrs="{
  66. 'readonly': [('model3_id', '=', False)],
  67. }"
  68. options="{
  69. 'no_open': True,
  70. 'no_create': True,
  71. }"/>
  72. </tree>
  73. </field>
  74. </group>
  75. </form>
  76. </field>
  77. </record>
  78. </odoo>