コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4394 ビュー

Hello,

On Odoo 8.0, I need to update the form of "Contact us" in the website_crm module . I want to update the controller so the check will be done even if the form is used in another view.

I see the _REQUIRED variable is tested against to check if a field is mandatory or not, but _REQUIRED is defined in the method. I though to use inherit from the controller and to overcharge the method but I don't know how to do it as the method returns a website.render().

Is there any trick I miss here that would allow me to update the field phone_number as required? I really want to do it in the controller.

here is the file:

https://github.com/odoo/odoo/blob/8.0/addons/website_crm/controllers/main.py

Regards,

Jordi

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 21
2532
0
3月 17
2902
2
11月 16
16894
1
3月 15
4084
1
9月 23
3131