Monday, February 24, 2020
2 changes
Resolved issues and error corrections
This fixes a checkout issue where the available states could be calculated using a different address type than the country list. Customers should now see matching country and state options when entering billing or shipping details, reducing checkout confusion when delivery features are installed.
Original PR description
Description of the issue/feature this PR addresses: List of states and countries in Payment page may be incorrect when website_sale_delivery is installed Current behavior before PR: List of states is always computed for "shipping" mode, while list of countries [may be billing](https://github.com/odoo/odoo/blob/e19227d3ba9c9296bfc0c221ac70a863a571b9a6/addons/website_sale/controllers/main.py#L656) Desired behavior after PR is merged: Use the same mode for states as for countries -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @it-projects-llc
The checkout address form now shows state options based on whether the customer is editing a billing or shipping address. This prevents delivery restrictions from incorrectly hiding billing states or showing unavailable shipping states, helping customers complete checkout with the right address choices.
Original PR description
All states would be listed in shipping mode Only restricted states would be listed in billing mode See commits for more details