Ir al contenido
Menú
Se marcó esta pregunta
12 Respuestas
4662 Vistas

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?

Avatar
Descartar
Mejor respuesta

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" />
Avatar
Descartar
Autor

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

Autor

Mitul, any idea how to properly inherit it?

yeah it will work.

Autor

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>

Autor

This worked. Thanks

Mejor respuesta

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
Avatar
Descartar
Autor

Thank you

Mejor respuesta

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

Avatar
Descartar
Autor Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 18
5521
1
ago 22
7038
1
abr 19
4196
5
may 25
9376
1
abr 25
136