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.
134 lines
4.6 KiB
134 lines
4.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!--base.custom.info.template-->
|
|
|
|
<record id="base_custom_info_template_tree" model="ir.ui.view">
|
|
<field name="name">base.custom.info.template.tree</field>
|
|
<field name="model">custom.info.template</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Custom Info Templates">
|
|
<field name="name"/>
|
|
<field name="model_id"/>
|
|
<field name="info_ids"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="base_custom_info_template_form" model="ir.ui.view">
|
|
<field name="name">base.custom.info.template.form</field>
|
|
<field name="model">custom.info.template</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Custom Info Template">
|
|
<sheet>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="model_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="info_ids">
|
|
<tree string="Info Lines" editable="bottom">
|
|
<field name="name"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="custom_info_template_action" model="ir.actions.act_window">
|
|
<field name="name">Templates</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">custom.info.template</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_id" eval="False"/> <!-- Force empty -->
|
|
<field name="domain" eval="False"/> <!-- Force empty -->
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to define a new custom info template.
|
|
</p><p>
|
|
You must define a custom info template for every different
|
|
product properties group.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_base_custom_info" name="Custom Info"
|
|
parent="base.menu_administration" sequence="45"/>
|
|
|
|
<menuitem id="menu_base_custom_info_template" action="custom_info_template_action"
|
|
parent="menu_base_custom_info" sequence="5"/>
|
|
|
|
<!--base.custom.info.template.line-->
|
|
|
|
<record id="base_custom_info_template_line_tree" model="ir.ui.view">
|
|
<field name="name">base.custom.info.template.line.tree</field>
|
|
<field name="model">custom.info.template.line</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Custom Info Templates">
|
|
<field name="name"/>
|
|
<field name="template_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="base_custom_info_template_line_form" model="ir.ui.view">
|
|
<field name="name">base.custom.info.template.line.form</field>
|
|
<field name="model">custom.info.template.line</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Custom Info Template Lines">
|
|
<sheet>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="template_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="info_value_ids"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="custom_info_template_line_action" model="ir.actions.act_window">
|
|
<field name="name">Properties</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">custom.info.template.line</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_type">form</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_base_custom_info_template_line" action="custom_info_template_line_action"
|
|
parent="menu_base_custom_info" sequence="10"/>
|
|
|
|
<!--base.custom.info.value-->
|
|
|
|
<record id="base_custom_info_value_tree" model="ir.ui.view">
|
|
<field name="name">base.custom.info.value.tree</field>
|
|
<field name="model">custom.info.value</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Custom Info Values">
|
|
<field name="custom_info_name_id"/>
|
|
<field name="value"/>
|
|
<field name="model"/>
|
|
<field name="res_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="custom_info_value_action" model="ir.actions.act_window">
|
|
<field name="name">Values</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">custom.info.value</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_type">form</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_base_custom_info_value" action="custom_info_value_action"
|
|
parent="menu_base_custom_info" sequence="15"/>
|
|
|
|
</data>
|
|
</openerp>
|