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.

58 lines
1.9 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_id"/>
  11. <field name="info_ids"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="base_custom_info_template_form" model="ir.ui.view">
  16. <field name="name">base.custom.info.template.form</field>
  17. <field name="model">custom.info.template</field>
  18. <field name="arch" type="xml">
  19. <form string="Custom Info Template">
  20. <sheet>
  21. <group>
  22. <field name="name"/>
  23. <field name="model_id"/>
  24. </group>
  25. <group>
  26. <field name="info_ids">
  27. <tree string="Info Lines" editable="bottom">
  28. <field name="name"/>
  29. </tree>
  30. </field>
  31. </group>
  32. </sheet>
  33. </form>
  34. </field>
  35. </record>
  36. <record id="custom_info_template_action" model="ir.actions.act_window">
  37. <field name="name">Templates</field>
  38. <field name="type">ir.actions.act_window</field>
  39. <field name="res_model">custom.info.template</field>
  40. <field name="view_mode">tree,form</field>
  41. <field name="view_type">form</field>
  42. <field name="view_id" eval="False"/> <!-- Force empty -->
  43. <field name="domain" eval="False"/> <!-- Force empty -->
  44. <field name="help" type="html">
  45. <p class="oe_view_nocontent_create">
  46. Click to define a new custom info template.
  47. </p><p>
  48. You must define a custom info template for every different
  49. product properties group.
  50. </p>
  51. </field>
  52. </record>
  53. </data>
  54. </openerp>