title: Add Button next the create Button in odoo Tree View
body: <p><strong>how to add this button in the Tree view ??</strong><br>
  This code in library/static/src/js/script.js</p>
  
  <pre><code>openerp.library = function(instance) {
  
      instance.web.ListView.include({
          load_list: function(data) {
              this._super(data);
              if (this.$buttons) {
                  this.$buttons.find('.oe_my_button').off().click(this.proxy('do_the_job'));
              }
          },
          do_the_job: function() {
  
              this.do_action({
                  name: _t("View name"),
                  type: "ir.actions.act_window",
                  res_model: "object",
                  domain: [],
                  views: [
                      [false, "list"],
                      [false, "tree"]
                  ],
                  target: 'new',
                  context: {},
                  view_type: 'list',
                  view_mode: 'list'
              });
          }
      });
  }
  </code></pre>
  
  <p>This code in library/static/src/xml/library_view.xml</p>
  
  
  
  <pre><code>&lt;template xml:space="preserve"&gt;
      &lt;t t-extend="ListView.buttons"&gt;
          &lt;t t-jquery="button.oe_list_add" t-operation="after"&gt;
              &lt;button t-if="widget.dataset.model == 'inventory'" class="oe_button oe_my_button oe_highlight" type="button"&gt;My Button&lt;/button&gt;
          &lt;/t&gt;
      &lt;/t&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>in my <strong>openerp</strong>.py</p>
  
  <pre><code>'qweb': ['static/src/xml/library_view.xml'],
  </code></pre>