odoo/odoo — pull request #3079 by rco-odoo (2014-10-14 15:36:59+00:00)
Title: [FIX] models: do not consider relational fields at all in a partial setup

Relational fields may be problematic, as they may refer to unknown models.
This is the case of custom relational fields, but also inherited custom
relational fields.

Add also a fix in _setup_related(), to setup fields before accessing them.