Skip to content

Commit

Permalink
[FIX] core: Validate custom views without an XML ID
Browse files Browse the repository at this point in the history
Regression of fc91fed

Closes #23646
Closes #23626
  • Loading branch information
StefanRijnhart authored and KangOl committed Apr 23, 2018
1 parent 3bee6eb commit 04b0d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/addons/base/ir/ir_ui_view.py
Expand Up @@ -1169,7 +1169,7 @@ def _validate_custom_views(self, cr, uid, model):
cr.execute("""SELECT max(v.id)
FROM ir_ui_view v
LEFT JOIN ir_model_data md ON (md.model = 'ir.ui.view' AND md.res_id = v.id)
WHERE md.module NOT IN (SELECT name FROM ir_module_module)
WHERE md.module IN (SELECT name FROM ir_module_module) IS NOT TRUE
AND v.model = %s
AND v.active = true
GROUP BY coalesce(v.inherit_id, v.id)
Expand Down

0 comments on commit 04b0d76

Please sign in to comment.