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
shaneebkhan
On 2/9/15, 4:33 AM

thanks for ur reply ,

but i want call that function(click button) in this section  ' instance.web.form.CompletionFieldMixin '

 

i got the answer

just add this code where you want

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

thanks for all..

1

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
On 2/6/15, 6:59 AM

in the view_form.js file ,you can see the following code in the line number 710:

 this.$buttons.on('click', '.oe_form_button_save',
                         this.guard_active(this.on_button_save));

 

it calls the function:

    on_button_save: function(e) {
               ---------

               -----------
    },

 

it calls another function:

    save: function(prepend_on_create) {
        ----------

        -------------
    },

it calls another function:

 _process_save: function(save_obj) {

               ------------

               ------------

},

finally it calls:

    record_saved: function(r) {
                  ----------

                  ------------
    },

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

2 follower(s)

Stats

Asked: 2/6/15, 5:11 AM
Seen: 988 times
Last updated: 3/16/15, 8:10 AM