How to send a message/mail to a specific user within the system from an admin of that system?
How to code the sending a mail/message to a specific registered user of the system from the admin of the system?
For example, in a form then there is a field (many2one ), there, i need to select a specific user that is registered in the system. And then there is a button which will be pressed so it will send a mail/message to the selected user. The mail/message will come from the admin of the system. The user will have to receive it when the user logged in, and will see it in his/her inbox. The type of the message is comment.
Please help me with this. And please give also a sample code.
OpenERP version 7
Im a newbie in openerp.