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,)}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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
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.
not the same for all
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up