title: One2many field on_change function can't change its own value?
body: <p>I have these two fields.</p>
  
  <pre><code>'name'              : fields.char('Name'),
  'addresses'         : fields.one2many('res.partner.address', 'partner','Addresses'),
  </code></pre>
  
  <p>This function:</p>
  
  <pre><code>def addresses_change(self, cr, uid, ids, name, addresses, context=None):
          value = {}
  
          new_addresses = []
          address_pool = self.pool.get('res.partner.address')
          for address in address_pool.browse(cr, uid, addresses[0][2], context=context):
              new_addresses.append((1,address.id,{'street':'wall street','zip':'7777','partner': ids[0],'active':True}))
  
          value.update(name='whatever')
          value.update(addresses=new_addresses)
          return {'value':value}
  </code></pre>
  
  <p>And these view fields:</p>
  
  <pre><code>&lt;field name="name" on_change="addresses_change(name,addresses)"/&gt;
  &lt;field name="addresses" on_change="addresses_change(name,addresses)"/&gt;
  </code></pre>
  
  <p>Now when I change <code>name</code>, both <code>name</code> and <code>addresses</code> are updated. But when I change <code>addresses</code> its own value isn't updated but the <code>name</code> is updated. So this bizarre behavior affects only <code>one2many</code> fields. Why is this?</p>
  
  <p>And how do I add <code>on_change</code> event to <code>one2many</code> fields that can update its own value?</p>
  
  <p>EDIT: I found out that this is might be a limitation in odoo, have they fixed this issue? <a href="https://github.com/odoo/odoo/issues/2693" rel="nofollow">Link to the issue</a></p>