Skip to content
Snippets Groups Projects
Commit 0a2fcfbc authored by Denis Ledoux's avatar Denis Ledoux Committed by fw-bot
Browse files

[FIX] fields: do not attempt to set foreign keys on views


Users sometimes define custom models on SQL views
e.g. @nseinlet
In such a case, Odoo should not attempt to create foreign keys
as it just cannot work on views.

This could prevent the migration of a database
with such a custom model using a view
when it attempted to fix the missing foreign keys
when updating the modules.

closes odoo/odoo#38988

X-original-commit: dfaea03d
Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
parent 7ee342ee
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment