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.

72 lines
2.8 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_template_tree" model="ir.ui.view">
  7. <field name="model">custom.info.template</field>
  8. <field name="arch" type="xml">
  9. <tree string="Custom Info Templates">
  10. <field name="name"/>
  11. <field name="model"/>
  12. <field name="model_id"/>
  13. <field name="property_ids"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="custom_info_template_form" model="ir.ui.view">
  18. <field name="model">custom.info.template</field>
  19. <field name="arch" type="xml">
  20. <form string="Custom Info Template">
  21. <sheet>
  22. <group>
  23. <field name="name"/>
  24. <field name="model"/>
  25. <field name="model_id"/>
  26. </group>
  27. <group name="Properties">
  28. <field name="property_ids"
  29. nolabel="1"
  30. context="{'form_view_ref': 'base_custom_info.custom_info_property_form', 'tree_view_ref': 'base_custom_info.custom_info_property_tree'}"
  31. />
  32. </group>
  33. </sheet>
  34. </form>
  35. </field>
  36. </record>
  37. <record id="custom_info_template_search" model="ir.ui.view">
  38. <field name="model">custom.info.template</field>
  39. <field name="arch" type="xml">
  40. <search>
  41. <field name="name"/>
  42. <field name="model_id"/>
  43. <field name="property_ids"/>
  44. <group expand="0" string="Group By">
  45. <filter string="Model" context="{'group_by': 'model_id'}"/>
  46. </group>
  47. </search>
  48. </field>
  49. </record>
  50. <record id="custom_info_template_action" model="ir.actions.act_window">
  51. <field name="name">Templates</field>
  52. <field name="type">ir.actions.act_window</field>
  53. <field name="res_model">custom.info.template</field>
  54. <field name="view_mode">tree,form</field>
  55. <field name="view_type">form</field>
  56. <field name="view_id" eval="False"/> <!-- Force empty -->
  57. <field name="domain" eval="False"/> <!-- Force empty -->
  58. <field name="help" type="html">
  59. <p class="oe_view_nocontent_create">
  60. Click to define a new custom info template.
  61. </p>
  62. <p>
  63. You must define a custom info template for each properties group.
  64. </p>
  65. </field>
  66. </record>
  67. </odoo>