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

Hi, everyone. 

I'm looking for a solution that can register a checkbox action. I want to store when someone clicks on a checkbox and send that stored value by e-mail. Anyone has any idea how can I do this? Thanks :)

アバター
破棄
最善の回答

This problem should be solved using a combination of a controller and js code. 

1: Create a mail template (if needed)

2: Create a controller endpoint. In this endpoint you want to retrieve the checkbox value and trigger the email template you created earlier.
(docs: https://www.odoo.com/documentation/14.0/developer/reference/addons/http.html)

3: Add JavaScript to your checkbox/form to send the value to the endpoint you have created
(docs: https://www.odoo.com/documentation/14.0/developer/reference/javascript/javascript_reference.html)

For anything more specific it would be required to see actual code

アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 23
1584
5
5月 16
11123
4
5月 15
5351
1
6月 24
1674
1
4月 24
1692