跳至内容
菜单
此问题已终结
1 回复
1654 查看

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!

形象
丢弃
相关帖文 回复 查看 活动
1
12月 23
2730
2
8月 23
2395
1
12月 23
4189
1
7月 23
3000
0
5月 23
2905