[IMP] Do not create FK when destination model is _auto=False
authorSamus CTO <cto@openerp.com>
Tue, 5 Aug 2014 09:34:19 +0000 (11:34 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 5 Aug 2014 13:02:23 +0000 (15:02 +0200)
commit5f6fc4735a9a09c350dbbb789f3d39000ca3601c
tree5662aca0bef18452ad08411ff5dcb572542e322c
parent56c54a52dfc9ef6a39a37b24afd7ae30597a5c0f
[IMP] Do not create FK when destination model is _auto=False

It is not useful to try to create foreign keys when the destination model is
a PostgreSQL view for example.
We already do this kind of verifications but ir.actions and transient models
but did not for _auto.
openerp/models.py