콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3962 화면

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

 

아바타
취소
작성자 베스트 답변

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