[FIX] website_sale: saved shipping country/state

When selectionning a saved shipping address when setting the shipping
address of an ecommerce order, the country and state should be set
accordingly.

unrelated issue noticed when testing e0d4dd01cc
This commit is contained in:
Nicolas Lempereur
2016-09-09 10:13:28 +02:00
parent e0d4dd01cc
commit 66de0ea75a
@@ -97,6 +97,9 @@ $('.oe_website_sale').each(function () {
$inputs.each(function () {
$(this).val( data[$(this).attr("name")] || "" );
});
$selects.filter('[name="shipping_country_id"]').val(data['shipping_country_id']).change();
$selects.filter('[name="shipping_state_id"]').val(data['shipping_state_id']);
});
$(oe_website_sale).on("change", 'input[name="add_qty"]', function (event) {