Thx to youtube channel openerpsupport!
To help those who (like me) try to use openerp.
Action server
Python code
Object (Purchase Order) In my case.
template id is template to use, get from url in template editor.
template_id = 8
self.pool.get('email.template').send_mail(cr, uid, template_id, object.id, context=context)
Connect to router node (in my case Purchase Order Basic Workflow)
↧