Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
22497 Zobrazení

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
Zrušit

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

Nejlepší odpověď

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
Zrušit
Autor

Great chirag Regards

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 24
1983
1
bře 24
3057
1
čvn 23
13187
0
led 23
3593
2
zář 20
4918