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.

82 lines
3.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  3. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
  4. <odoo>
  5. <record id="custom_info_property_tree" model="ir.ui.view">
  6. <field name="name">Custom Info Property Tree</field>
  7. <field name="model">custom.info.property</field>
  8. <field name="arch" type="xml">
  9. <tree string="Custom Info Properties">
  10. <field name="sequence" widget="handle"/>
  11. <field name="name"/>
  12. <field name="template_id" invisible="context.get('embed')"/>
  13. <field name="field_type"/>
  14. <field name="category_id"/>
  15. <field name="required"/>
  16. <field name="default_value"/>
  17. </tree>
  18. </field>
  19. </record>
  20. <record id="custom_info_property_form" model="ir.ui.view">
  21. <field name="name">Custom Info Property Form</field>
  22. <field name="model">custom.info.property</field>
  23. <field name="arch" type="xml">
  24. <form string="Custom Info Template Properties">
  25. <sheet>
  26. <group>
  27. <field name="name"/>
  28. <field name="template_id"
  29. invisible="context.get('embed')"/>
  30. <field name="field_type"/>
  31. <field name="category_id"/>
  32. <field name="required"/>
  33. <field name="default_value"/>
  34. <field name="minimum"/>
  35. <field name="maximum"/>
  36. </group>
  37. <group>
  38. <field name="info_value_ids"
  39. invisible="context.get('embed')"/>
  40. <field
  41. name="option_ids"
  42. attrs="{'invisible': [('field_type', '!=', 'id')]}"/>
  43. </group>
  44. </sheet>
  45. </form>
  46. </field>
  47. </record>
  48. <record id="custom_info_property_search" model="ir.ui.view">
  49. <field name="name">Custom Info Property Search</field>
  50. <field name="model">custom.info.property</field>
  51. <field name="arch" type="xml">
  52. <search>
  53. <field name="name"/>
  54. <field name="template_id"/>
  55. <field name="field_type"/>
  56. <field name="category_id"/>
  57. <field name="required"/>
  58. <field name="default_value"/>
  59. <group expand="0" string="Group By">
  60. <filter
  61. string="Template"
  62. context="{'group_by': 'template_id'}"/>
  63. <filter
  64. string="Category"
  65. context="{'group_by': 'category_id'}"/>
  66. </group>
  67. </search>
  68. </field>
  69. </record>
  70. <record id="custom_info_property_action" model="ir.actions.act_window">
  71. <field name="name">Properties</field>
  72. <field name="type">ir.actions.act_window</field>
  73. <field name="res_model">custom.info.property</field>
  74. <field name="view_mode">tree,form</field>
  75. <field name="view_type">form</field>
  76. </record>
  77. </odoo>