diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 8641f9e0909..166444b3032 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -262,7 +262,7 @@ Min : diff --git a/addons/website_sale/static/src/js/website_sale.js b/addons/website_sale/static/src/js/website_sale.js index 006a328dbc8..1dac377270e 100644 --- a/addons/website_sale/static/src/js/website_sale.js +++ b/addons/website_sale/static/src/js/website_sale.js @@ -338,8 +338,10 @@ $('.oe_website_sale').each(function () { var state_options = $("select[name='state_id'] option:not(:first)"); $(oe_website_sale).on('change', "select[name='country_id']", function () { var select = $("select[name='state_id']"); + var selected_state = select.val(); state_options.detach(); var displayed_state = state_options.filter("[data-country_id="+($(this).val() || 0)+"]"); + select.val(selected_state); var nb = displayed_state.appendTo(select).show().size(); select.parent().toggle(nb>=1); }); @@ -348,8 +350,10 @@ $('.oe_website_sale').each(function () { var shipping_state_options = $("select[name='shipping_state_id'] option:not(:first)"); $(oe_website_sale).on('change', "select[name='shipping_country_id']", function () { var select = $("select[name='shipping_state_id']"); + var selected_state = select.val(); shipping_state_options.detach(); var displayed_state = shipping_state_options.filter("[data-country_id="+($(this).val() || 0)+"]"); + select.val(selected_state); var nb = displayed_state.appendTo(select).show().size(); select.parent().toggle(nb>=1); }); diff --git a/doc/cla/individual/fmdl.md b/doc/cla/individual/fmdl.md new file mode 100644 index 00000000000..45c3464ce3f --- /dev/null +++ b/doc/cla/individual/fmdl.md @@ -0,0 +1,11 @@ +France, 12-11-2016 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Florent de Labarre florent.mirieu@gmail.com https://github.com/fmdl