Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
12 Antwoorden
4689 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Auteur

Mitul, any idea how to properly inherit it?

yeah it will work.

Auteur

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>

Auteur

This worked. Thanks

Beste antwoord

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
Annuleer
Auteur

Thank you

Beste antwoord

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

Avatar
Annuleer
Auteur Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
dec. 18
5539
1
aug. 22
7058
1
apr. 19
4201
5
mei 25
9399
1
apr. 25
136