Skip to Content
Menu
This question has been flagged
1 Reply
12776 Views

I'm trying to list all the products from a parent category, even if they're in a subcategory. Same as asked here: https://www.odoo.com/forum/help-1/question/list-products-in-all-subcategories-10874

I still can't make that work. But on one of my trial-error, I found out that deleting all the .xml files from /Server/server/openerp/addons/product/ has absolutely no effect. I restarted the service few times but the forms keeps working as usual and also the search functions and filters.

I spent all day trying to add a new filter when the problem seems to be that the service is not loading the xml files from where I thought. Why is that?

Avatar
Discard
Best Answer

Views are database persistent for performance reasons.  The process of installing/upgrading a module loads the views into the table ir_ui_view.  Once the module is installed, you can delete all the .xml files you want, it makes no difference.  You'll run into a lot of trouble the next time you try to upgrade the product module or one of its dependents, base, decimal_precision, mail, or report.

You need to inherit views to modify them properly.  You can also edit the default view as well, but it's not recommended as those changes won't be persistent through a module upgrade.

Avatar
Discard
Author

Ok, I understand it and makes a lot of sense. So, how can I force the system to refresh the xml that has stored in the database? If I go to Settings>Update Modules List>Update it says: Nice! No updates. I created a filter in Settings>Technical>User Interface>Views and now it works! Thank you so much

You need to go to the installed modules list and open the module you want, then click the upgrade button. It will update the model and view definitions to what the files say.

Author

Got it. Thank you!

Related Posts Replies Views Activity
1
Jul 23
2601
1
Oct 22
2215
1
Oct 16
5395
1
Mar 15
4959
1
Mar 15
11410