跳至内容
菜单
此问题已终结

Hi all!

I have a template view which is inheriting from "auth_signup.signup" and where I want to disable a button from signup form only when my custom config parameter "button_enabled" is disabled (False). I tried the next code inside attribute tag with name="attrs": (I cant type all the lines because odoo forum remove them)  



{'disabled': [('website.env['ir.config_parameter'].get_param('custom_login.recaptcha_enabled')','=',True)]}
    


But it didn't work. How can I do it?

Thanks!

形象
丢弃
编写者 最佳答案

Anyone?

形象
丢弃
相关帖文 回复 查看 活动
3
6月 21
7945
3
4月 17
5681
0
8月 22
6235
0
3月 20
3614
0
9月 19
4003