[MERGE] forward port branch 9.0 up to 7be6c74

This commit is contained in:
Christophe Simonis
2016-11-14 17:26:28 +01:00
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -262,7 +262,7 @@
<field name="nbr_reordering_rules" widget="statinfo"/>
</button>
<button name="%(product_open_orderpoint)d" type="action"
attrs="{'invisible':['|',('type', '!=', ['product', 'consu']),('nbr_reordering_rules', '!=', 1)]}"
attrs="{'invisible':['|',('type', 'not in', ['product', 'consu']),('nbr_reordering_rules', '!=', 1)]}"
class="oe_stat_button" icon="fa-refresh">
<div class="o_form_field o_stat_info mr4">
<span class="o_stat_text">Min :</span>
@@ -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);
});
+11
View File
@@ -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