diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/delivery/views/report_package_barcode.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/delivery/views/report_package_barcode.xml')
| -rw-r--r-- | addons/delivery/views/report_package_barcode.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/delivery/views/report_package_barcode.xml b/addons/delivery/views/report_package_barcode.xml new file mode 100644 index 00000000..0b363e10 --- /dev/null +++ b/addons/delivery/views/report_package_barcode.xml @@ -0,0 +1,20 @@ +<odoo> + <template id="report_package_barcode_delivery" inherit_id="stock.report_package_barcode"> + <xpath expr="//div[hasclass('o_packaging_type')]" position="after"> + <div t-if="o.shipping_weight" class="col-auto"> + <strong>Shipping Weight:</strong> + <br/> + <span t-field="o.shipping_weight"/> + <span t-esc="env['product.template']._get_weight_uom_id_from_ir_config_parameter().display_name"/> + </div> + </xpath> + </template> + + <template id="report_package_barcode_small_delivery" inherit_id="stock.report_package_barcode_small"> + <xpath expr="//div[hasclass('o_packaging_type')]" position="after"> + <div class="row o_package_shipping_weight" t-if="o.shipping_weight"> + <div class="col-12 text-center" style="font-size:24px; font-weight:bold;"><span>Shipping Weight: </span><span t-field="o.shipping_weight"/> <t t-esc="env['product.template']._get_weight_uom_id_from_ir_config_parameter().display_name"/></div> + </div> + </xpath> + </template> +</odoo> |
