Odoo Help

Welcome!

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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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