[FIX] website_sale: update price in payement when the user change the delivery method

bzr revid: chm@openerp.com-20140117150602-0rdmf0pd2eiocg66
This commit is contained in:
Christophe Matthieu
2014-01-17 16:06:02 +01:00
parent 163364e5fe
commit bcc307560c
2 changed files with 5 additions and 7 deletions
+4 -7
View File
@@ -540,7 +540,10 @@
<tr style="border-top: 1px solid #000" id="order_total">
<th><h3>Total:</h3></th>
<th class="text-right">
<h3><t t-call="website_sale.total"/></h3>
<h3><span t-field="website_sale_order.amount_total" t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></h3>
</th>
</tr>
<tr class="text-muted" id="order_total_taxes">
@@ -1060,11 +1063,5 @@
</t>
</template>
<template id="total">
<span t-field="website_sale_order.amount_total" t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</template>
</data>
</openerp>
@@ -18,6 +18,7 @@ class Ecommerce(Ecommerce):
SaleOrder = request.registry['sale.order']
SaleOrder.write(cr, SUPERUSER_ID, [order.id], {'carrier_id': carrier_id}, context=context)
SaleOrder.delivery_set(cr, SUPERUSER_ID, [order.id], context=context)
return request.redirect("/shop/payment/")
res = super(Ecommerce, self).payment(**post)
return res