mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG][12.0] web_widget_child_selector
This commit is contained in:
committed by
Olga Marco
parent
e55c2208ae
commit
c5e1a49c98
@@ -13,10 +13,6 @@ odoo.define('web.web_widget_child_selector', function(require) {
|
||||
'click .o_child_selection_button': '_onChildSelectionClick',
|
||||
}),
|
||||
start: function () {
|
||||
// boolean indicating that the content of the input isn't synchronized
|
||||
// with the current m2o value (for instance, the user is currently
|
||||
// typing something in the input, and hasn't selected a value yet).
|
||||
|
||||
this.$input_dropdown = this.$('.o_input_dropdown');
|
||||
this.$input_value = this.$('.o_input_value')
|
||||
return this._super.apply(this, arguments);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</t>
|
||||
<t t-name="FieldChildSelectorChild">
|
||||
<div class="row">
|
||||
<div t-foreach="childs" t-as="key" class="col-xs-12">
|
||||
<div t-foreach="childs" t-as="key" class="col-xl-12">
|
||||
<t t-set="id_for_label" t-value="'o_child_hierarchy_selector_' + _.uniqueId()"/>
|
||||
<input type="radio" t-att-data-id="childs[key][0]" t-att-data-index="key"
|
||||
t-att-id="id_for_label" data-type="child" class="o_child_selection_button"/>
|
||||
@@ -34,7 +34,7 @@
|
||||
</a>
|
||||
</t>
|
||||
<t t-if="Object.keys(parents).length > 0">
|
||||
<i class="fa fa-times o_child_selection_button o_child_selection_clear" aria-hidden="true" data-type="clear"/>
|
||||
<i class="fa fa-times o_child_selection_button o_child_selection_clear" aria-hidden="false" data-type="clear"/>
|
||||
</t>
|
||||
</span>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user