Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenERP email sending issue

Tags:

openerp

Currently I'm working on email sending functionality of openerp version7.0 application.

Steps followed :

Module 'Email Templates' is installed successfully

Navigated to Settings>>Technical>>Email>>Templates

Created a new template by selecting my module 'latest_base'

Clicked on 'Add context to action button.

Clicked on preview button and no errors reported

Finally navigated to my module and clicked on send email button. 

System throws following error.

AttributeError: 'latest_base' object has no attribute 'message_post'

enter image description hereenter image description here

like image 785
user3153567 Avatar asked Oct 02 '22 13:10

user3153567


1 Answers

Please add below line in your class.This will take care.

_inherit = ['mail.thread']

like image 52
shrikanth Avatar answered Oct 05 '22 12:10

shrikanth