Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'd like to access my product titles (or other fields) programmatically from a QWeb view (i.e. web page) that is NOT based on model data 'Products'. How would I best do that?
An example would be a simple website widget that loops through all products with t-foreach and lists all product titles.
For other people who are wondering the same - this is one option that worked for me:
1.) Create a module and a controller which obtains the data required and which you can call via a URL.
2) Insert an AJAX snippet on the homepage calling your controller to obtain the data.
I am certain there are other (and maybe better) ways...
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/16/14, 2:17 AM|
|Seen: 958 times|
|Last updated: 3/16/15, 8:10 AM|