Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
129 Zobrazení

Right now i want to try create a filter on Odoo17 Owl with this "Many2XAutocomplete" it work fine when the isToMany="false" for many2one, but as i see on the this component 

```

Many2XAutocomplete.props = {

    value: { type: String, optional: true },

    activeActions: Object,

    context: { type: Object, optional: true },

    nameCreateField: { type: String, optional: true },

    setInputFloats: { type: Function, optional: true },

    update: Function,

    resModel: String,

    getDomain: Function,

    searchLimit: { type: Number, optional: true },

    quickCreate: { type: [Function, { value: null }], optional: true },

    noSearchMore: { type: Boolean, optional: true },

    searchMoreLimit: { type: Number, optional: true },

    fieldString: String,

    id: { type: String, optional: true },

    placeholder: { type: String, optional: true },

    autoSelect: { type: Boolean, optional: true },

    isToMany: { type: Boolean, optional: true },

    autocomplete_container: { type: Function, optional: true },

    dropdown: { type: Boolean, optional: true },

    autofocus: { type: Boolean, optional: true },

};

Many2XAutocomplete.defaultProps = {

    searchLimit: 7,

    searchMoreLimit: 320,

    nameCreateField: "name",

    value: "",

    setInputFloats: () => {},

    quickCreate: null,

    context: {},

    dropdown: true,

};


```



there is boolean isToMany that in theory should work as Many2many when boolean isToMany="true", when when i use here 

```

<div id="customerSelect" class="form-select no-placeholder-line">

                                    <Many2XAutocomplete

                                        value="state.customer_name"

                                        resModel="'res.partner'"

                                        fieldString="'Customer'"

                                        getDomain.bind="() => getDomain('customer')"

                                        update="(selection) => this.updateSelection(selection, 'customer')"

                                        activeActions="{}"

                                        isToMany="true"

                                        placeholder="'Select a Customer'"

                                    />

                                </div>

```


it doesnt change effect anything and the filter still can be choose one recod, can u help me on this, as i need many2many so the filter can be choose mutilple record

Avatar
Zrušit