1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- Product view modification -->
- <record model="ir.ui.view" id="product_template_only_form_view">
- <field name="name">product.template.pack.form</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_only_form_view" />
- <field name="arch" type="xml">
- <field name="type" position="after">
- <field name="pack" string="¿Es un paquete?"/>
- <field name="pack_price_type" attrs="{'invisible':[('pack', '=', False)], 'required':[('pack','=',True)]}" context="{'pack_price_type': pack_price_type}" string="Tipo de paquete"/>
- </field>
- <notebook position="inside">
- <page string="Receta" attrs="{'invisible': ['|', ('product_variant_count', '>', 1), ('pack', '=', False)]}">
- <field name="pack_line_ids"/>
- </page>
- </notebook>
- </field>
- </record>
- <record model="ir.ui.view" id="nan_product_pack_form">
- <field name="name">product.product.pack.form</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_normal_form_view" />
- <field name="arch" type="xml">
- <field name="type" position="after">
- <field name="pack" string="¿Es un paquete?"/>
- <field name="pack_price_type" attrs="{'invisible':[('pack', '=', False)], 'required':[('pack','=',True)]}" context="{'pack_price_type': pack_price_type}" string="Tipo de paquete"/>
- </field>
- <notebook position="inside">
- <page string="Receta" attrs="{'invisible':[('pack', '=', False)]}">
- <field name="pack_line_ids"/>
- </page>
- </notebook>
- </field>
- </record>
- <!-- product.pack.line -->
- <record model="ir.ui.view" id="product_pack_line_form">
- <field name="name">product.pack.line.form</field>
- <field name="model">product.pack.line</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Pack Product Line">
- <group>
- <field name="product_id"/>
- <field name="quantity"/>
- <field name="pricecosto" string="Precio Costo"/>
- <field name="price" string="Precio"/>
- <field name="subtotal"/>
- <field name="subtotalcosto"/>
- <!-- <field name="discount" groups="sale.group_discount_per_so_line" invisible="context.get('pack_price_type') == 'fixed_price'"/> -->
- </group>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="product_pack_line_tree">
- <field name="name">product.pack.line.tree</field>
- <field name="model">product.pack.line</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Pack Product Lines" editable="bottom">
- <field name="product_id"/>
- <field name="quantity"/>
- <field name="pricecosto" string="Precio Costo"/>
- <field name="price" string="Precio"/>
- <field name="subtotalcosto" sum="totalcosto"/>
- <field name="subtotal" sum="total"/>
- <!-- <field name="discount" groups="sale.group_discount_per_so_line" invisible="context.get('pack_price_type') == 'fixed_price'"/> -->
- </tree>
- </field>
- </record>
- </data>
- </openerp>
|