Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1476 Visualizações

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!

Avatar
Cancelar
Autor Melhor resposta

Anyone?

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
jun. 21
7745
3
abr. 17
5528
0
ago. 22
6079
0
mar. 20
3433
0
set. 19
3812