[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 :-/
[FIX] product: redo forward port 2832d2d for fix 12eb157 lost with 43977de
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-win32