[FIX] fields: generalize inverse_field to a list of inverse fields
authorRaphael Collet <rco@openerp.com>
Fri, 8 Aug 2014 12:04:40 +0000 (14:04 +0200)
committerRaphael Collet <rco@openerp.com>
Fri, 8 Aug 2014 12:57:00 +0000 (14:57 +0200)
commit9363dfe1efd7283976d78eda72d05238dcedfe86
treeb85559e84fce434141bee368321425498040a01e
parentf1d5dfa85b7d783469b4a0ade5f0ba1dcc2854de
[FIX] fields: generalize inverse_field to a list of inverse fields

Some many2one fields happen to have several corresponding one2many fields,
typically with different domains. It is also the case for the field 'res_id' of
mail.message, where each model inheriting from mail.thread defines a one2many
based on that field. The fix ensures that when a relational field is updated,
all its inverse fields are invalidated.
openerp/fields.py
openerp/models.py