[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user