[FIX] base: do not validate deactived custom views

This commit is contained in:
Christophe Simonis 2015-09-22 15:33:01 +02:00
parent 1bcc5b5797
commit 33bb8db05e
1 changed files with 1 additions and 0 deletions

View File

@ -1096,6 +1096,7 @@ class view(osv.osv):
LEFT JOIN ir_model_data md ON (md.model = 'ir.ui.view' AND md.res_id = v.id)
WHERE md.module IS NULL
AND v.model = %s
AND v.active = true
GROUP BY coalesce(v.inherit_id, v.id)
""", (model,))