跳至內容
選單
此問題已被標幟
1 回覆
1508 瀏覽次數

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
7790
3
4月 17
5547
0
8月 22
6118
0
3月 20
3451
0
9月 19
3862