Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1470 Переглядів

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?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
черв. 21
7743
3
квіт. 17
5527
0
серп. 22
6060
0
бер. 20
3429
0
вер. 19
3810