|
|
@ -37,7 +37,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<template id="cart_lines_extended" inherit_id="website_sale.cart_lines"> |
|
|
|
<xpath expr="//table[@id='cart_products']/thead/tr/th[1]" position="attributes"> |
|
|
|
<!-- <xpath expr="//table[@id='cart_products']/thead/tr/th[1]" position="attributes"> |
|
|
|
<attribute name="width">100</attribute> |
|
|
|
</xpath> |
|
|
|
<xpath expr="//table[@id='cart_products']/thead/tr/th[3]" position="attributes"> |
|
|
@ -45,25 +45,18 @@ |
|
|
|
</xpath> |
|
|
|
<xpath expr="//table[@id='cart_products']/thead/tr/th[4]" position="attributes"> |
|
|
|
<attribute name="width">100</attribute> |
|
|
|
</xpath> |
|
|
|
</xpath>--> |
|
|
|
|
|
|
|
<xpath expr="//table[@id='cart_products']/tbody//td[@id='td-qty']/div" |
|
|
|
position="replace"> |
|
|
|
<div class="input-group oe_website_spinner"> |
|
|
|
<t t-if="line.product_id.display_name == 'Gift Coupon'"> |
|
|
|
<a href='#' class='js_delete_product no-decoration'> |
|
|
|
<small> |
|
|
|
<i class='fa fa-trash-o'></i> |
|
|
|
Remove |
|
|
|
</small> |
|
|
|
</a> |
|
|
|
<input type="hidden" class="js_quantity form-control" |
|
|
|
t-att-data-line-id="line.id" |
|
|
|
t-att-data-product-id="line.product_id.id" |
|
|
|
t-att-value="int(line.product_uom_qty)" |
|
|
|
/> |
|
|
|
</t> |
|
|
|
|
|
|
|
<t t-if="line.product_id.display_name != 'Gift Coupon'"> |
|
|
|
<a t-attf-href="#" |
|
|
|
class="mb8 input-group-addon js_add_cart_json" |
|
|
@ -73,7 +66,7 @@ |
|
|
|
<input type="text" class="js_quantity form-control" |
|
|
|
t-att-data-line-id="line.id" |
|
|
|
t-att-data-product-id="line.product_id.id" |
|
|
|
t-att-value="int(line.product_uom_qty)" /> |
|
|
|
t-att-value="int(line.product_uom_qty) == line.product_uom_qty and int(line.product_uom_qty) or line.product_uom_qty" /> |
|
|
|
<a t-attf-href="#" |
|
|
|
class="mb8 input-group-addon float_left js_add_cart_json" |
|
|
|
data-no-instant=""> |
|
|
|