|
@@ -9,11 +9,11 @@
|
|
|
<field name="inherit_id" ref="product.product_template_only_form_view" />
|
|
|
<field name="arch" type="xml">
|
|
|
<field name="type" position="after">
|
|
|
- <field name="pack"/>
|
|
|
- <field name="pack_price_type" attrs="{'invisible':[('pack', '=', False)], 'required':[('pack','=',True)]}" context="{'pack_price_type': pack_price_type}"/>
|
|
|
+ <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="Pack" attrs="{'invisible': ['|', ('product_variant_count', '>', 1), ('pack', '=', False)]}">
|
|
|
+ <page string="Lista de productos" attrs="{'invisible': ['|', ('product_variant_count', '>', 1), ('pack', '=', False)]}">
|
|
|
<field name="pack_line_ids"/>
|
|
|
</page>
|
|
|
</notebook>
|
|
@@ -26,11 +26,11 @@
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view" />
|
|
|
<field name="arch" type="xml">
|
|
|
<field name="type" position="after">
|
|
|
- <field name="pack"/>
|
|
|
- <field name="pack_price_type" attrs="{'invisible':[('pack', '=', False)], 'required':[('pack','=',True)]}" context="{'pack_price_type': pack_price_type}"/>
|
|
|
+ <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="Pack" attrs="{'invisible':[('pack', '=', False)]}">
|
|
|
+ <page string="Lista de productos" attrs="{'invisible':[('pack', '=', False)]}">
|
|
|
<field name="pack_line_ids"/>
|
|
|
</page>
|
|
|
</notebook>
|
|
@@ -47,6 +47,8 @@
|
|
|
<group>
|
|
|
<field name="product_id"/>
|
|
|
<field name="quantity"/>
|
|
|
+ <field name="price" string="Precio de Costo"/>
|
|
|
+ <field name="subtotal"/>
|
|
|
<field name="discount" groups="sale.group_discount_per_so_line" invisible="context.get('pack_price_type') == 'fixed_price'"/>
|
|
|
</group>
|
|
|
</form>
|
|
@@ -61,6 +63,8 @@
|
|
|
<tree string="Pack Product Lines" editable="bottom">
|
|
|
<field name="product_id"/>
|
|
|
<field name="quantity"/>
|
|
|
+ <field name="price" string="Precio de Costo"/>
|
|
|
+ <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>
|