Sunday 14 February 2016

How to send mail from Any Button in OpenERP/Odoo ?


mail.jpg

OpenERP enables utilizer to send and receive emails when an action is done from OpenERP. We can configure emails to be send when a sale is verify or invoice is paid etc. But to implements these type of functionality, we require to update the functions that is being called from these button actions.

We require to call the send_mail function in these button actions to send mail. OpenERP enables to send mail utilizing “Automated Actions” but we cannot configure it when a button action is done for example when a report is printed from a button action. This requires conversion in code.

We have developed a module in such a way that the utilizer will be able to configure to which button action mail is to be send. Utilizer requires some technical erudition about OpenERP like button denomination, button type etc. Module integrates an incipient menu in location “Settings -> Button Mail Configuration > Button Mail Configuration” where utilizer will be able to configure the button actions.

No comments:

Post a Comment