Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
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?
Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Penulis

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 }}

Post Terkait Replies Tampilan Aktivitas
1
Agu 24
2189
1
Apr 24
1727
0
Des 23
1816
0
Agu 23
1628
1
Nov 24
4505