You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
2.0 KiB
34 lines
2.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="cart_lines" inherit_id="website_sale.cart_lines">
|
|
<xpath expr="//td[hasclass('text-center','td-qty')]" position="replace">
|
|
<t t-if="line.product_id.product_tmpl_id.is_coupon">
|
|
<td class="text-center td-qty">
|
|
<span class="js_quantity text-muted" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-esc="int(line.product_uom_qty)"/>
|
|
</td>
|
|
</t>
|
|
<t t-else="">
|
|
<td class="text-center td-qty">
|
|
<div t-if="not line.linked_line_id" class="css_quantity input-group mx-auto oe_website_spinner">
|
|
<div class="input-group-prepend">
|
|
<a t-attf-href="#" class="btn btn-link js_add_cart_json d-none d-md-inline-block" aria-label="Remove one" title="Remove one">
|
|
<i class="fa fa-minus"></i>
|
|
</a>
|
|
</div>
|
|
<input type="text" class="js_quantity form-control quantity" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty) == line.product_uom_qty and int(line.product_uom_qty) or line.product_uom_qty" />
|
|
<div class="input-group-append">
|
|
<a t-attf-href="#" class="btn btn-link float_left js_add_cart_json d-none d-md-inline-block" aria-label="Add one" title="Add one">
|
|
<i class="fa fa-plus"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<t t-if="line.linked_line_id">
|
|
<span class="js_quantity text-muted" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-esc="int(line.product_uom_qty)"/>
|
|
</t>
|
|
</td>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|