title: Odoo change base javascript method
body: <p>There is a file in Odoo: <a href="https://github.com/odoo/odoo/blob/10.0/addons/mail/static/src/js/chatter.js#L100" rel="nofollow noreferrer">addons/mail/static/src/js/chatter.js</a> . It contains a method I would like to change: <a href="https://github.com/odoo/odoo/blob/10.0/addons/mail/static/src/js/chatter.js#L100" rel="nofollow noreferrer">message_get_suggested_recipients</a>.</p>
  
  <p>For this I created an addon with files:</p>
  
  <p>chatter.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;odoo&gt;
      &lt;data&gt;
          &lt;!--template id="assets_backend" name="addon1" inherit_id="web.assets_backend"--&gt;
              &lt;xpath expr="." position="inside"&gt;
                  &lt;script type="text/javascript" src="/addon1/static/src/js/chatter.js"&gt;&lt;/script&gt;
              &lt;/xpath&gt;
          &lt;/template&gt;
      &lt;/data&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p>and </p>
  
  <p>chatter.js</p>
  
  <pre><code>odoo.define('addon1.chatter', function(require){
  'use strict';
  
  var OdooChatter = require('mail.Chatter');
  
  OdooChatter.include({
      message_get_suggested_recipients: function () {
      var self = this;
      var email_addresses = _.pluck(this.suggested_partners, 'email_address');
      return this.thread_dataset
          .call('message_get_suggested_recipients', [[this.context.default_res_id], this.context])
          .done(function (suggested_recipients) {
              var thread_recipients = suggested_recipients[self.context.default_res_id];
              _.each(thread_recipients, function (recipient) {
                  var parsed_email = utils.parse_email(recipient[1]);
                  if (_.indexOf(email_addresses, parsed_email[1]) === -1) {
                      self.suggested_partners.push({
                          checked: recipient[3] || true,
                          partner_id: recipient[0],
                          full_name: recipient[1],
                          name: parsed_email[0],
                          email_address: parsed_email[1],
                          reason: recipient[2],
                      });
                  }
              });
          });
      }
  });
  });
  </code></pre>
  
  <p>I can see that javascript loads when Odoo website is open, but breakpoints don't catch the right place, that means loaded javascript was ineffective.</p>
  
  <p><strong>How to change the method because my provided method isn't called (instead the original is called)?</strong></p>