Odoo Help


1 Answer
23-05-14 01:00


# create form with the fields as below in xml and get the fields from your form in py and create a record in mail.mail
it will automatically send to user('email_to')
And you have a configuration part in Setting -> Technical -> Scheduler
configure your interval time in Email Queue Manager

email_from = login user mail-id
email_to = "what you choose (res.users many2one)"
sub = " "
body_html = " "

vals ={'email_from':email_from,
                        'state': 'outgoing',
                            'subject': sub,
                            'body_html': body,
                            'auto_delete': True}

self.pool.get('mail.mail').create(cr, uid, vals, context=context)

Stel een vraag
Keep Informed
2 volger(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now