Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3949 Vues

how i can trigger save button inside  'instance.web.form.CompletionFieldMixin'  this section (view_form.js)

 

// search more... if more results that max
            if (values.length > self.limit) {
                values = values.slice(0, self.limit);
                values.push({
                    label: _t("Search More..."),
                    action: function() {
                        dataset.name_search(search_val, self.build_domain(), 'ilike', 160).done(function(data) {
                            self._search_create_popup("search", data);
                        });
                    },
                    classname: 'oe_m2o_dropdown_option'
                });

                i want call save button event from here   ....

 

Avatar
Ignorer
Auteur Meilleure réponse

i got the answer for this ,

add this code where u want

var test=self.__parentedParent;
                test.save(true)
                test=null;

 

 

 

 

Avatar
Ignorer

You made my day. +1