Skip to Content
Menu
This question has been flagged

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");
                 
                  });         
             
          },
     
     });
     
  };

Avatar
Zrušiť
Autor

????????????????/

Related Posts Replies Zobrazenia Aktivita
5
feb 25
13156
1
nov 24
1528
4
apr 24
62359
0
jan 21
2653
0
nov 20
2440