[FIX] website_sale: better fiscal position detection + support update during checkout
authorOlivier Dony <odo@openerp.com>
Fri, 10 Oct 2014 19:02:30 +0000 (21:02 +0200)
committerOlivier Dony <odo@openerp.com>
Fri, 10 Oct 2014 19:02:33 +0000 (21:02 +0200)
commit9b67a483df587bf0e1ab5c1dc9b51aeb807d4153
tree4864f15e4232e02dd9cf4fcbda961e5e264b10ba
parentee697920f5d0f47b13f60fd81e89deff51f186e1
[FIX] website_sale: better fiscal position detection + support update during checkout

The customer can change the country and tax
number in the billing information during
checkout, and the taxes should be properly
updated according to the re-detected fiscal
position.

The fiscal position detection also depends
on the `vat_subjected` flag, which we now assume
to be implicit as soon as the customer filled
in a valid Tax Identification Number.
addons/website_sale/controllers/main.py
addons/website_sale/models/sale_order.py