Not able to send emails in server 7.0

Bug #1094375 reported by Yogesh Kushwaha
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

Hi there!

I am trying to send emails using server 7.0. I created email template and added context action.
But I am not able to send email using these template and context action ... all the time I get error
AttributeError: 'tci_object' object has no attribute 'message_post'. I get the same error for all the objects

It was never in server 6.1. what is wrong with my procedure?

Thanks !

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Yogesh,

I have checked your Issue with following revision,
OE 7.0
server : 4762
addons : 8518
web : 3669

But I did not faced any problem. It's work fine for me. So would please check It again with latest and notify us where you have faced the problem.

Thanks and waiting for your reply!

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Yogesh Kushwaha (yogeshkushwaha4) wrote :

Hello Amit,

Is it possible to send mails to custom objects without modifying code?

I get this error :
AttributeError: 'custom_object' object has no attribute 'message_post'. I get the same error .So I always need to overwrite this method in each custom object if I want to send mail to that object

Thanks :
Yogesh Kushwaha

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Yogesh,

Yes, I have faced the same problem when I try with the custom module. and It's work fine after overwrite the method in custom module. so we should Improve this behavior. That's why I am confirm this Issue with medium Importance.

Note : In 6.1, no need to overwrite the method in custom object.

Thanks!

Changed in openobject-server:
status: Incomplete → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
OpenERP4You (7a532kg9lsp0vi-support) wrote :

Hello Amit,

thanks for the confirm it.I did it but Please improve the behaviour.It was perfect in server 6.1.

Thanks and regards:

Yogesh Kushwaha

Revision history for this message
Tomás Pascual (tomas-pascual) wrote :

How can we overwrite the method in custom module ?
Thanks And Regards,

Revision history for this message
prakash jain (prakash-jain) wrote :

In Custom Module added the line

_inherit = ['mail.thread', 'ir.needaction_mixin']

After that able to send mail using wizard.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.