Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1670 Представления

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

Аватар
Отменить
Автор

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.

Лучший ответ

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!

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 23
2740
2
авг. 23
2400
1
дек. 23
4208
1
июл. 23
3014
0
мая 23
2923