Skip to Content
Menu
This question has been flagged
1 Atsakyti
3943 Rodiniai

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   ....

 

Portretas
Atmesti
Autorius Best Answer

i got the answer for this ,

add this code where u want

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

 

 

 

 

Portretas
Atmesti

You made my day. +1