[IMP] website_sale: icon for policies and Secure Payment; fix my cart label
bzr revid: chm@openerp.com-20131003112354-l146jewjuzhlzt7p
This commit is contained in:
parent
6f454c6b33
commit
f5262b9c5c
|
@ -80,7 +80,7 @@
|
|||
<a t-href="/shop/mycart/">
|
||||
<i class="icon-shopping-cart"></i>
|
||||
My cart <sup t-attf-class="my_cart_quantity label label-primary"
|
||||
t-esc="website_sale_order and int(website_sale_order.get_total_quantity()) or ''"/>
|
||||
t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
|
||||
</a>
|
||||
</li>
|
||||
</xpath>
|
||||
|
@ -502,14 +502,14 @@
|
|||
<div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
|
||||
<h4>Policies</h4>
|
||||
<ul class="list-unstyled mb32">
|
||||
<li><span class="icon-check"/> 30-days money-back guarantee</li>
|
||||
<li><span class="icon-check"/> Invoice sent by e-Mail</li>
|
||||
<li>☑ 30-days money-back guarantee</li>
|
||||
<li>☑ Invoice sent by e-Mail</li>
|
||||
</ul>
|
||||
|
||||
<h4>Secure Payment</h4>
|
||||
<ul class="list-unstyled mb32">
|
||||
<li><span class="icon-lock"/> Transation 256bit encrypted</li>
|
||||
<li><span class="icon-check"/> Processed by Ogone</li>
|
||||
<li>☑ Transation 256bit encrypted</li>
|
||||
<li>☑ Processed by Ogone</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -28,7 +28,7 @@ class sale_order(osv.Model):
|
|||
|
||||
def get_total_quantity(self, cr, uid, ids, context=None):
|
||||
order = self.browse(cr, uid, ids[0], context=context)
|
||||
return sum(l.product_uom_qty for l in (order.order_line or []))
|
||||
return int(sum(l.product_uom_qty for l in (order.order_line or [])))
|
||||
|
||||
|
||||
class sale_order_line(osv.Model):
|
||||
|
|
Loading…
Reference in New Issue