콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
12 답글
4794 화면

In the Invoices screen in the Action drop down menu, I want the "Confirm Draft Invoices" to be visible to only specific group of users. Can anyone tell me whether can i apply group tag to this or not?

아바타
취소
베스트 답변

Hello

Add groups attribute into the submenu item of Action menu. You have to do the change like below code.

 for eg, 

<act_window id="account.action_account_invoice_confirm"
            multi="True"
            groups="your group id"
            key2="client_action_multi"
            name="Confirm Draft Invoices"
            res_model="account.invoice.confirm"
            src_model="account.invoice"
            view_mode="form" target="new" view_type="form" />
아바타
취소
작성자

Mitul, Thanks for clearing it up, I was wondering whether I could add group tag to it or not. +1

작성자

Mitul, any idea how to properly inherit it?

yeah it will work.

작성자

Silverstar, any idea how to properly inherit this action?

you can inherit like this.

<act_window id="account.action_account_invoice_confirm"

groups="base.groups"/>

or you can use below way too.

<record id="account.action_account_invoice_confirm" model="ir.actions.act_window">

<field name="groups">base.group_user</field>

</record>

작성자

This worked. Thanks

베스트 답변

Hi Sammer,


Mitul answer is correnct only.

You need to inherit base action like this.

<act_window id="module_name.action_id"
etc.../>

Regards,
Silvestar
아바타
취소
작성자

Thank you

베스트 답변

Does anyone know how to inherit the above code to modify it?

아바타
취소
작성자 베스트 답변

Does anyone know how to inherit the above code to modify it?

아바타
취소
관련 게시물 답글 화면 활동
2
12월 18
5630
1
8월 22
7203
1
4월 19
4307
5
5월 25
9572
1
4월 25
136