odoo/odoo — pull request #1458 by rco-odoo (2014-07-30 15:23:24+00:00)
Title: [FIX] manual x2x fields cannot refer to manual fields

example:
create custom model x_foo (name, partner_id)
add custom o2m field x_foo_ids that point to a x_foo model
=> crash at registry loading (KeyError)

Fixed by loading custom models before setting up all models.