Odoo : Value in one2many doen't change in api.depends
<p>I have 3 models, here is the interesting part of each:</p>

<p>vote:</p>

<pre><code>class vote(osv.osv)

_name = 'vote'

_columns = {
    name = fields.many2one('res.partner', 
                                            'Member of enterprise',
                                            select=True),

    type = fields.interger('Type'),
}
</code></pre>

<p>history_line:</p>

<pre><code>class history_line(osv.osv)

_name = 'history_line'

_columns = {
    fieldsA = fields.integer('First field'),
    fieldB = fields.integer('Second field'),
    this_id = fields.many2one('res.partner', 'link to res'),
}
</code></pre>

<p>res_partner:</p>

<pre><code>class res_partner(osv.osv)

_inherit = 'res.partner'

_columns = {
    vote_partner_ids = fields.one2many('vote', 
                                            'name',
                                            'Voted peoples',
                                            select=True),

    vote_history_ids = fields.one2many('history.line',
                                              'this_id',
                                              compute='compute_type', 
                                              string='History of votes'),
}

@api.multi
@api.depends('vote_partner_ids.type')
def compute_type(self):
    for record in self:
        if self.vote_partner_ids.type:
            record.vote_history_ids = [(0, 0, {'self.vote_history_ids.fieldA': self.vote_partner_ids.type + 4,
                                                'self.vote_history_ids.fieldB': self.vote_partner_ids.type - 2})]
</code></pre>

<p>Their is also a default value for a new history_line (fieldA = 1 when you don't do anything, fieldB = -1 when you don't do anything for exemple)</p>

<p>I can't move my compute function elsewhere because lot of stuffs are computed here. </p>

<p>The problem is : When I modify type in vote, a new history line will be created, but with the defaults values. I can't make the values be anything else. (even If I put directly a value, like 10)
So why are the default values choose, even if I asked them to being computed, but it still understand it has to create a new tuple?</p>