[FIX] website_sale: recompute fiscal position at checkout

Method refactored by commit 94716a3 and 198164d
This commit is contained in:
Jeremy Kersten
2015-12-09 13:38:55 +01:00
parent c867927b2e
commit 96d316fdf4
+1
View File
@@ -625,6 +625,7 @@ class website_sale(http.Controller):
partner_id = orm_partner.create(cr, SUPERUSER_ID, billing_info, context=context)
order.write({'partner_id': partner_id, 'partner_invoice_id': partner_id})
order_obj.onchange_partner_id(cr, SUPERUSER_ID, [order.id], context=context)
order_obj.onchange_partner_shipping_id(cr, SUPERUSER_ID, [order.id], context=context)
# create a new shipping partner
if checkout.get('shipping_id') == -1: