1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record id="product_template_form_view" model="ir.ui.view">
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_form_view"/>
- <!-- There is a position="replace" then we add a priority -->
- <!-- <field name="priority" eval="100"/> -->
- <field name="arch" type="xml">
- <xpath expr="//page[@string='Information']//field[@name='list_price']"
- position="replace">
- </xpath>
- <xpath expr="//page[@string='Sales']/group[@name='sale']" position="before">
- <group>
- <field name="list_price" string="Public price" invisible="1"/>
- <field name="pricelist_item_ids" colspan="4" nolabel="1"
- domain="[('price_version_id.pricelist_id.type', '=', 'sale'),
- ('price_version_id.price_grid', '=', True)]">
- <tree editable="top" create="0" delete="0">
- <field name="price_version_id"/>
- <field name="product_id" string="Product Variant"
- domain="[('product_tmpl_id', '=', parent.id)]"
- help="Define a price for this variant according to attribute price extra if any (tab 'Variants')" invisible="1"/>
- <field name="price_surcharge" string="Valor"/>
- <field name="date_end" invisible="1"/>
- <field name="price_discount" invisible="1"/>
- <field name="sequence" invisible="1"/>
- <field name="base" invisible="1"/>
- </tree>
- </field>
- </group>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|