Skip to Content
Menu
This question has been flagged
5 Replies
21863 Views

Dear all,

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

Regards

Paulo

Avatar
Discard

this question is the same as my question https://www.odoo.com/nl_NL/forum/help-1/question/how-to-get-modules-dependencies-85588 but it was phrased in more better way than mine so it got more valuable replies

Best Answer

Hi,

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.

Avatar
Discard
Author

Great chirag Regards

Best Answer

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.

regards,

Avatar
Discard
Best Answer

Hi,

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.

regards,

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
1239
1
Mar 24
2275
1
Jun 23
12255
0
Jan 23
2954
2
Sep 20
3931