Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3594 Lượt xem

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 :)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 23
1479
5
thg 5 16
11000
4
thg 5 15
5250
1
thg 6 24
1572
1
thg 4 24
1612