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.
39 lines
1.9 KiB
39 lines
1.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Inheriting product_template to add new fields-->
|
|
<record id="view_template_property_form" model="ir.ui.view">
|
|
<field name="name">product.template.view.form.inherit.product.volume</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.view_template_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='group_lots_and_weight']" position="replace">
|
|
<group string="Logistics" name="group_lots_and_weight"
|
|
invisible="type not in ('product', 'consu')">
|
|
<label for="weight"/>
|
|
<div class="o_row" name="weight" style="width: 40px;">
|
|
<field name="weight"/>
|
|
<span>kg</span>
|
|
</div>
|
|
<label for="volume"/>
|
|
<div name="volume">
|
|
<div class="o_row">
|
|
<field name="length" style="width:55px;"
|
|
placeholder="Length"/>
|
|
<field name="breadth" style="width:55px;"
|
|
placeholder="Breadth"/>
|
|
<field name="height" style="width:55px;"
|
|
placeholder="Height"/>
|
|
<field name="length_uom" style="width:55px;"/>
|
|
</div>
|
|
<br/>
|
|
<div class="o_row">
|
|
<field name="volume" string="Volume"
|
|
style="width: 40px;"/>
|
|
<field name="volume_uom" style="width:25px;"/>
|
|
</div>
|
|
</div>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|