odoo18/addons/stock_delivery/views/report_shipping.xml

24 lines
989 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_shipping2" inherit_id="stock.report_picking">
<xpath expr="//div[@name='div_sched_date']" position="after">
<div t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id" class="col">
<strong>Carrier</strong>
<div t-field="o.carrier_id"/>
</div>
<t t-set="display_weight" t-value="o.weight if o.state == 'done' else o.shipping_weight"/>
<div t-if="display_weight" class="col">
<strong>Weight</strong>
<div>
<span t-out="display_weight"/>
<span t-field="o.weight_uom_name"/>
</div>
</div>
<div t-if="o.carrier_id" class="col" name="div_shipping_method">
<strong>Shipping Method:</strong>
<p t-field="o.carrier_id">FedEx</p>
</div>
</xpath>
</template>
</odoo>