[imp] hide packagings if packing size = 1
This commit is contained in:
parent
5d582e7636
commit
a7c490c711
1 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
|||
<odoo>
|
||||
<template id="cart_lines_packaging" inherit_id="website_sale.cart_lines" name="Shopping Cart Lines">
|
||||
<xpath expr="//td[hasclass('td-product_name')]" position="inside">
|
||||
<div>
|
||||
<span t-if="line.product_packaging_id">Open Package: <t t-esc="line.compute_open_packages()"/>/<t
|
||||
<div t-if="line.product_packaging_id and (line.product_packaging_id.qty != 1)">
|
||||
<span>Open Package: <t t-esc="line.compute_open_packages()"/>/<t
|
||||
t-esc="line.product_packaging_id.qty"
|
||||
/><br/></span>
|
||||
<span t-if="line.batch_uom_qty > 0">Ordered Quantity: <t t-esc="line.batch_uom_qty"/></span>
|
||||
<span>Total Ordered Quantity: <t t-esc="line.batch_uom_qty"/></span>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//th[hasclass('td-qty')]" position="after">
|
||||
|
|
|
|||
Loading…
Reference in a new issue