Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
How to change the “partner_to” tag and send email to more partners?  

CODE
I inherited the template and changed “partner_to” and “subject”, the subject changed, but not the “partner_to”.



NOTES
  • I added xml file in manifest
  • I also tried:
    • {{str(object.mapped('my_partner_ids.email') if object.my_partner_ids else object.mapped('my_partner_ids.email')).replace("'","") }}
    • {{ ', '.join(object.mapped('my_partner_ids.email')) if object.my_partner_ids else '' }}
    • {{object.mapped('my_partner_ids.email')}}

SOURCES

Link 1 Link 2 Link 3



What am I doing wrong; What am I missing?
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Vasilis: There is a typo in partner_to. You need 2 closing braces }}. One of them is missing.

One more thing, partner_to accepts a comma-separated list of ids not emails.

Ảnh đại diện
Huỷ bỏ
Tác giả

Hello Paresh, can you please give me a correct example of a comma-separated list of ids ? thank you for your answer in advance.

Hi Vasilis: Try this in partner_to (I'm assuming you have a custom field called my_partner_ids since you mentioned it in your example).

{{ object.my_partner_ids.ids }}

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
2189
1
thg 4 24
1727
0
thg 12 23
1816
0
thg 8 23
1628
1
thg 11 24
4505