Hello, I am using odoo v14.
I'm trying to apply a dynamic domain to a view displayed by
a menuitem.menuitem can only trigger window action, but window actions can't
have dynamic domain.How can i user server action with menuitem please .for my
domain i'm trying to access my current user( uid) attributes ( like name,
company_id,..).
Thanks in advance :)
신고된 질문입니다
2
답글
8120
화면
I think, you should call custom method from your model, which will return nessesary view. In custom method you can get access to fields you need. For example:
Leave Filter
code
action = env.get('hr.holidays').leave_filter_act()
More info here: https://www.odoo.com/ru_RU/forum/pomoshch-1/how-to-call-ir-actions-act-window-from-python-to-menuitem-142855
See: How To Call Python Function From Menu Item in Odoo
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
1
11월 23
|
4505 | ||
|
|
1
4월 23
|
5102 | ||
|
|
3
3월 22
|
11426 | ||
|
|
1
12월 21
|
5714 | ||
|
|
1
1월 20
|
6066 |