Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1028 Vizualizări

<!-- Cancel -->                        

<button name="button_cancel" string="Cancel Entry" type="object" groups="account.group_account_invoice" data-hotkey="w"  attrs="{'invisible' : ['|', '|', ('id', '=', False), ('state', '!=', 'draft'),('move_type', '!=', 'entry')]}"/>                        

<button name="button_cancel" string="Cancel" type="object" groups="account.group_account_invoice" data-hotkey="w" attrs="{'invisible' : ['|', '|', ('id', '=', False), ('state', '!=', 'draft'),('move_type', '==', 'entry')]}"/>


 I want to change the color of the Cancel button in Accounting (view_move_form) by inherit in Odoo 15, but I'm having trouble because there are 2 cancel buttons. I tried adding a condition by entering a string but got an error. Can anyone help me?

Imagine profil
Abandonează
Cel mai bun răspuns

Hello Aprilia,

You can define second index as per following code to inherit "cancel" button.

<xpath expr="//button[@name='button_cancel'][2]" position="attributes">
<attribute name="xyz">{....}</attribute>
</xpath>



Thanks & Regards,

CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 15
4977
0
sept. 24
946
3
dec. 23
2506
2
iul. 22
4326
1
sept. 21
3320