title: how to write events for formview inside header buttons? odoo 10
body: <p>I have tried this code in odoo10 community but not working, what is my fault?</p>
  
  <p>Or Can anyone guide me how to do it?</p>
  
  <pre><code>    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("test"+this.getParent().dataset.model); 
                      },
                      events: {
                         'click #target': 'button_clicked',
                      },
                      button_clicked : function(ev) { 
                          console.log("test333555555");
                          ev.preventDefault();
                          ev.stopPropagation();
                          console.log("test 333333333333");
                      });         
  
                   },
  
              });
  };
  </code></pre>