diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2019-05-21 11:54:59 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2019-07-31 08:04:38 +0000 |
| commit | bdb61d2c2ffe33fb48d8ffc6a8fe8bfaee8cb7ce (patch) | |
| tree | a70ac63d667b4f1f763a83a94852569da50dbb50 /addons/delivery/views | |
| parent | 8aebeb2f0322892c42debf4ff434e288dd4953e7 (diff) | |
[IMP] stock, delivery: usability changes in the package barcode report.
task-1889404
Closes #29209
Diffstat (limited to 'addons/delivery/views')
| -rw-r--r-- | addons/delivery/views/report_package_barcode.xml | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/addons/delivery/views/report_package_barcode.xml b/addons/delivery/views/report_package_barcode.xml index b3cac1b32d0..320aaee3cbc 100644 --- a/addons/delivery/views/report_package_barcode.xml +++ b/addons/delivery/views/report_package_barcode.xml @@ -1,28 +1,19 @@ <odoo> <template id="report_package_barcode_delivery" inherit_id="stock.report_package_barcode"> <xpath expr="//div[hasclass('o_packaging_type')]" position="after"> - <table class="table table-sm"> - <thead> - <tr> - <th t-if="o.shipping_weight"><strong>Shipping Weight</strong></th> - </tr> - </thead> - <tbody> - <tr> - <td t-if="o.shipping_weight"> - <span t-field="o.shipping_weight"/> - <t t-esc="env['product.template']._get_weight_uom_id_from_ir_config_parameter().name"/> - </td> - </tr> - </tbody> - </table> + <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" style="font-size:24px; font-weight:bold;">Shipping Weight: <span t-field="o.shipping_weight"/></div> + <div class="col-12 text-center" style="font-size:24px; font-weight:bold;">Shipping Weight: <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> |
