On some models, like picking, package and move, the weight was hardcoded in 'kg', we instead use the value in the ir.config.parameter. We also changed some field labels to give them more meaning. Related Task ID: #1895297 closes odoo/odoo#27944
22 lines
996 B
XML
22 lines
996 B
XML
<odoo>
|
|
<template id="report_delivery_document2" inherit_id="stock.report_delivery_document">
|
|
<xpath expr="//th[@name='td_sched_date_h']" position="after">
|
|
<th t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id"><strong>Carrier</strong></th>
|
|
<th t-if="o.shipping_weight"><strong>Shipping Weight</strong></th>
|
|
<th t-if="o.carrier_tracking_ref"><strong>Tracking Number</strong></th>
|
|
</xpath>
|
|
<xpath expr="//td[@name='td_sched_date']" position="after">
|
|
<td t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id">
|
|
<span t-field="o.carrier_id"/>
|
|
</td>
|
|
<td t-if="o.shipping_weight">
|
|
<span t-field="o.shipping_weight"/>
|
|
<span t-field="o.weight_uom_name"/>
|
|
</td>
|
|
<td t-if="o.carrier_tracking_ref">
|
|
<span t-field="o.carrier_tracking_ref"/>
|
|
</td>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|