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.

79 lines
2.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  3. Copyright 2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  4. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
  5. <odoo>
  6. <record id="custom_info_option_tree" model="ir.ui.view">
  7. <field name="model">custom.info.option</field>
  8. <field name="priority" eval="999"/>
  9. <field name="arch" type="xml">
  10. <tree string="Custom Info Options" editable="bottom">
  11. <field name="name"/>
  12. <!-- Hidden for now from backend UI -->
  13. <field name="template_id" invisible="1"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="custom_info_option_tree_full" model="ir.ui.view">
  18. <field name="model">custom.info.option</field>
  19. <field name="inherit_id" ref="custom_info_option_tree"/>
  20. <field name="mode">primary</field>
  21. <field name="arch" type="xml">
  22. <tree position="attributes">
  23. <attribute name="editable"/>
  24. </tree>
  25. <field name="name" position="before">
  26. <field name="property_ids" widget="many2many_tags"/>
  27. </field>
  28. </field>
  29. </record>
  30. <record id="custom_info_option_form" model="ir.ui.view">
  31. <field name="model">custom.info.option</field>
  32. <field name="priority" eval="999"/>
  33. <field name="arch" type="xml">
  34. <form string="Custom Info Template Properties">
  35. <sheet>
  36. <group>
  37. <field name="name"/>
  38. <!-- Hidden for now from backend UI -->
  39. <field name="template_id" invisible="1"/>
  40. </group>
  41. </sheet>
  42. </form>
  43. </field>
  44. </record>
  45. <record id="custom_info_option_form_full" model="ir.ui.view">
  46. <field name="model">custom.info.option</field>
  47. <field name="inherit_id" ref="custom_info_option_form"/>
  48. <field name="mode">primary</field>
  49. <field name="arch" type="xml">
  50. <field name="template_id" position="after">
  51. <field name="property_ids"/>
  52. <field name="value_ids"/>
  53. </field>
  54. </field>
  55. </record>
  56. <record id="custom_info_option_search" model="ir.ui.view">
  57. <field name="model">custom.info.option</field>
  58. <field name="arch" type="xml">
  59. <search>
  60. <field name="name"/>
  61. <field name="property_ids"/>
  62. </search>
  63. </field>
  64. </record>
  65. <record id="custom_info_option_action" model="ir.actions.act_window">
  66. <field name="name">Options</field>
  67. <field name="type">ir.actions.act_window</field>
  68. <field name="res_model">custom.info.option</field>
  69. <field name="view_mode">tree,form</field>
  70. <field name="view_type">form</field>
  71. </record>
  72. </odoo>