Last Updated: February 25, 2016
·
4.456K
· daniel-hartmann

How to clear view cache in OpenERP 7.0

OpenERP 7.0 has been storing forever some of my custom module views. I found this - bizarre - way to update them.

Access the database you're using and run the SQL instruction below.

UPDATE ir_ui_view SET arch = '<?xml version="1.0"?><data></data>' WHERE name LIKE 'MY_CUSTOM_MODULE.%';

Then update your custom module by restarting the server with "-u MYCUSTOMMODULE" or update it via GUI.

p.s. I don't know why you can't just delete this records from the database.