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

Hello everybody,

I try to set a group on search view. 

If any one have an idea how work groups on view. Could you explain me ? 

For the story, I would like have a specific search in function of user group. 

 


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

Odoo Development Guidlines: http://learnopenerp.blogspot.com

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

Hello John,

You can apply group on field, filter, group tag in search view.

Assume that if you want to prevent some filter from user access then you can use like:

<filter string="Label" name="filter_feature"  domain="[('active','=',False)]" groups="group_name"/>

You can apply group on group by filter like:

<group string="Group By">

<filter name="group_filter_name" string="Label" groups="group_name" context="{'group_by': 'filted_name'}"/> 

</group>


Hope it will helpful for you.

Thanks and regards

Haresh Kansara

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
25343
2
thg 7 22
4316
1
thg 9 21
3969
3
thg 9 21
8769
2
thg 9 21
9740