跳至內容
選單
此問題已被標幟

i have tried this code in odoo 10 community but not working, what is my fault,.........

openerp.module_name= function (instance) {

        var _t = instance.web._t, QWeb = instance.web.qweb;

            instance.web.FormView = instance.web.FormView.include({

            init: function() {
                    this._super.apply(this, arguments);
                    console.log("ttttttttttttttttttt"+this.getParent().dataset.model);
                },
               

           events: {
             'click #target': 'button_clicked',
            },
    
          button_clicked : function(ev) { 
              console.log("tttttttt");
              ev.preventDefault();
              ev.stopPropagation();
              console.log("test 333333333333");
                 
                  });         
             
          },
     
     });
     
  };

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 24
1822
0
8月 22
2968
1
7月 22
20740
0
4月 22
3516
3
9月 21
3694