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