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.
Odoo works with models defined for each module used.
Is there any simple a fast way to get a list of the models used on a specific module?
For instance, how to get a list of models used by sales module?
Thank you very much
If you want to see the models which are used in sale module then you can use the following code.
model_ids = self.pool.get('ir.model').search(cr, uid, [('modules','ilike','sale')])
I hope it will return all the models which are used in sale module. You can aslo improve the above search as you want.
go to settings in the upper menu, under the technical section in side menu navigate to Database structure click on models.
use the custom search (model description contains sale)
all models in sales module will appear when click on one of them you will see:
all fields used in views which in the selected model in sales module.
Please see 'Technical Data' tab in a Form View of module you're interested in. You can find this tab by going to 'Settings/Modules/Installed Modules' page and opening any module in a form view. In the tab you'll find some useful information related to your question.
note: if you see in the form view of module only 'Description' and 'Features' tabs, then you'll need activate 'Technical Features' access right for your user. For do that, go to 'Settings/Users/Users' page, open there your user, edit it and check 'Technical Features' checkbox in a 'Access Rights' tab. then log out and log in again to openerp.
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: 10/6/14, 4:38 AM|
|Seen: 2843 times|
|Last updated: 5/4/16, 9:42 PM|