Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
12 ตอบกลับ
4692 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 18
5546
1
ส.ค. 22
7062
How to make line items mandatory? แก้ไขแล้ว
1
เม.ย. 19
4202
5
พ.ค. 25
9405
1
เม.ย. 25
136