Odoo Help

0

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

By
shaneebkhan
on 2/10/15, 3:45 AM 669 views

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

 

1
shaneebkhan
On 2/11/15, 1:28 AM

i got the answer for this ,

add this code where u want

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

 

 

 

 

You made my day. +1

PY
on 7/23/15, 7:59 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/10/15, 3:45 AM
Seen: 669 times
Last updated: 3/16/15, 8:10 AM