[FIX][#5182] speed up product form loading
removes obsolete (and faulty) check
This commit is contained in:
parent
0ed63d73a6
commit
a70ea6d03b
|
@ -503,7 +503,7 @@
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<t t-set="inc" t-value="0"/>
|
<t t-set="inc" t-value="0"/>
|
||||||
<t t-foreach="variant_id.value_ids" t-as="value_id">
|
<t t-foreach="variant_id.value_ids" t-as="value_id">
|
||||||
<li t-if="value_id.product_ids" class="form-group js_attribute_value" style="margin: 0;">
|
<li class="form-group js_attribute_value" style="margin: 0;">
|
||||||
<label class="control-label" style="margin: 0 20px;">
|
<label class="control-label" style="margin: 0 20px;">
|
||||||
<input type="radio" class="js_variant_change" t-att-checked="'checked' if not inc else ''" t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)" t-att-value="value_id.id" style="vertical-align: top; margin-right: 10px;"/>
|
<input type="radio" class="js_variant_change" t-att-checked="'checked' if not inc else ''" t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)" t-att-value="value_id.id" style="vertical-align: top; margin-right: 10px;"/>
|
||||||
<span t-field="value_id.name"/>
|
<span t-field="value_id.name"/>
|
||||||
|
|
Loading…
Reference in New Issue