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.

60 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="base_custom_info_template_tree" model="ir.ui.view">
  5. <field name="name">base.custom.info.template.tree</field>
  6. <field name="model">custom.info.template</field>
  7. <field name="arch" type="xml">
  8. <tree string="Custom Info Templates">
  9. <field name="name"/>
  10. <field name="model"/>
  11. <field name="model_id"/>
  12. <field name="info_ids"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="base_custom_info_template_form" model="ir.ui.view">
  17. <field name="name">base.custom.info.template.form</field>
  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>
  28. <field name="info_ids">
  29. <tree string="Info Lines" editable="bottom">
  30. <field name="name"/>
  31. </tree>
  32. </field>
  33. </group>
  34. </sheet>
  35. </form>
  36. </field>
  37. </record>
  38. <record id="custom_info_template_action" model="ir.actions.act_window">
  39. <field name="name">Templates</field>
  40. <field name="type">ir.actions.act_window</field>
  41. <field name="res_model">custom.info.template</field>
  42. <field name="view_mode">tree,form</field>
  43. <field name="view_type">form</field>
  44. <field name="view_id" eval="False"/> <!-- Force empty -->
  45. <field name="domain" eval="False"/> <!-- Force empty -->
  46. <field name="help" type="html">
  47. <p class="oe_view_nocontent_create">
  48. Click to define a new custom info template.
  49. </p><p>
  50. You must define a custom info template for each
  51. product properties group.
  52. </p>
  53. </field>
  54. </record>
  55. </data>
  56. </openerp>