[FIX] models: in _add_field(), set the field as an attr before setting it up
authorRaphael Collet <rco@openerp.com>
Tue, 14 Oct 2014 08:11:40 +0000 (10:11 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 14 Oct 2014 09:56:59 +0000 (11:56 +0200)
commit43abcb02ba0730836fd568ecfd8c1faf7a2009f5
treee8f59dbb48e99537d9df3ef0b92a23835a818eb6
parent2b8cb4fa89c3ef80d6c35de59c0a5d7288348866
[FIX] models: in _add_field(), set the field as an attr before setting it up

In the case of custom fields, the field's parameters were set up without the
field being present in the class hierarchy.  Because of this, the parameter
inheritance mechanism was missing the field itself.  As a consequence, custom
selection fields ended up without selection, for instance :-/
openerp/fields.py
openerp/models.py