96 lines
4.1 KiB
XML
96 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_sales_config_website_sale" model="ir.ui.view">
|
|
<field name="name">sale settings</field>
|
|
<field name="model">sale.config.settings</field>
|
|
<field name="inherit_id" ref="sale.view_sales_config"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='Product Features']/div" position="inside">
|
|
<div>
|
|
<field name="group_product_attributes" class="oe_inline"/>
|
|
<label for="group_product_attributes"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_normal_form_view" model="ir.ui.view">
|
|
<field name="name">product.normal.form.inherit</field>
|
|
<field name="model">product.product</field>
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<!-- add state field in header -->
|
|
<xpath expr="//sheet/div" position="before">
|
|
<field name="website_url" invisible="1"/>
|
|
<field name="website_published" class="pull-right" widget="website_button"/>
|
|
</xpath>
|
|
|
|
<group name="sale" position="inside">
|
|
<group name="website" string="Website">
|
|
<field name="alternative_product_ids" widget="many2many_tags"/>
|
|
<field name="accessory_product_ids" widget="many2many_tags"/>
|
|
<field name="website_style_ids" widget="many2many_tags"/>
|
|
<field name="website_sequence"/>
|
|
</group>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="product_pricelist_view">
|
|
<field name="name">product.pricelist.website.form</field>
|
|
<field name="model">product.pricelist</field>
|
|
<field name="inherit_id" ref="product.product_pricelist_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="active" position="after">
|
|
<field name="code"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="product_template_form_view">
|
|
<field name="name">product.template.product.website.form</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<!-- add state field in header -->
|
|
|
|
<xpath expr="//sheet/div" position="before">
|
|
<field name="website_url" invisible="1"/>
|
|
<field name="website_published" class="pull-right" widget="website_button"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='description']" position="before">
|
|
<group colspan="4" string="Website Options">
|
|
<field name="alternative_product_ids" widget="many2many_tags"/>
|
|
<field name="accessory_product_ids" widget="many2many_tags"/>
|
|
<field name="website_style_ids" widget="many2many_tags"/>
|
|
<field colspan="4" name="attribute_lines" nolabel="1" groups="product.group_product_attributes">
|
|
<tree string="Product attributes" editable="bottom">
|
|
<field name="attribute_id" on_change="onchange_attribute_id(attribute_id)"/>
|
|
<field name="value_id"
|
|
context="{'default_attribute_id': attribute_id}"
|
|
domain="[('attribute_id', '=', attribute_id)]"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_product_attribute_form">
|
|
<field name="name">product.attribute.form</field>
|
|
<field name="model">product.attribute</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Product attributes" version="7.0">
|
|
<group>
|
|
<field name="name"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|