Skip to Content
Menu
This question has been flagged
2 Replies
2203 Views


Hi

i'm using odoo12.0 community edition adn i want to creat a custom mail template to send purchase order to all followers

the main issue that i want to get list of their emails to send

what should i type in to(Emails)

also i tried this in mail template to get name of all followers

% for follower in object.message_follower_ids:
${follower.name} ${follower.email}
% endfor



but i always get error







Failed to render template


using values
{'format_date': . at 0x7fc4cc24dd08>,
'format_tz': . at 0x7fc4cc24dbf8>,
'format_amount': . at 0x7fc4cc24d620>,
'user': res.users(2,), 'ctx': {'lang': 'en_US', 'tz': False, 'uid': 2,
'params': {'id': 19, 'action': 111, 'model': 'mail.template', 'view_type': 'form', 'menu_id': 4}, 'template_id': 19, 'active_model': 'mail.template', 'active_id': 19, 'active_ids': [19], 'search_disable_custom_filters': True, 'safe': False},
'object': purchase.order(37,)}


Avatar
Discard
Author Best Answer

Hi

Thanks Paresh for answer but actually i need to send a notify to 4 department on PO creation 

is there any other ideas to get this?


Thanks

Avatar
Discard

If the email addresses of the 4 departments are the same for all POs, you could include them in the "cc" field of the email template.

Author

not the same for all

Best Answer

You cannot "force" a communication with followers (for example, by sending them an email). The follower is the one who is in control of the communication. If the follower opts in, they will get notified.

Hope that helps.

Avatar
Discard