Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1675 Visualizzazioni

i want to hide samart button which is give me the sale order of selected res.partner.

my problem is i want to this button after i selecte the res.partener and i also add button in status bar .


my flow is select res.partner -> click on button which add by me -> after clicking button show my smart button -> and click this smart button and get me saleorder of which res.partner i selected.


any one can help me

thank you in advance

Avatar
Abbandona
Autore

thank you SB but problem is solved by other trick

thanks for valuable support

Great @Ra_one_1_11
If possible share it here, it will be helpfull for others.

Risposta migliore

Hi @Ra_one_1_11,

you can add attrs attribute to your button defination in XML. 
attrs="{'invisible':[('binding_model_id','!=',False)]}" 
Note: Replace the binding_model_id with your res.partner select field.

Hope this helps!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 23
2764
2
ago 23
2408
1
dic 23
4218
1
lug 23
3020
0
mag 23
2965