Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
22475 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Great chirag Regards

Câu trả lời hay nhất

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,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
1980
1
thg 3 24
3054
1
thg 6 23
13182
0
thg 1 23
3591
2
thg 9 20
4910