"Send by Email" function not working in OpenERP for SO coming from Magento

Bug #1290383 reported by Jean-Philippe ROBBE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
New
Undecided
Unassigned

Bug Description

Credits to Jesus for finding the bug !

branch openerp-connector-magento : Revision 963
Branch openobject-server : Revision 5256
Branch openobject-addons: Revision 9886
Branch openserver-web : Revision 4155
Magento 1.8.1 CE

How to reproduce :
In OpenERP, go to Sales > Sales Order
Open a SO. Recipient list is automatically populated.
Click Send. Form closes but nothing is sent.
Message is logged in Settings > Technical > Email > Messages with no recipient.

Workaround:

Open a SO. Delete recipient automatically populated. Lookup for recipient again.
Click Send. Message is sent.

This bug does not appear with SO created in OpenERP.

Jean-Philippe ROBBE (6p)
description: updated
Revision history for this message
Jean-Philippe ROBBE (6p) wrote :

Found an interesting thing :

Consider my customer name is John Doe
Recipient is shown the following way :
John DOE, John DOE <email address hidden>

but If I remove it from the list and lookup again :
John DOE <email address hidden>

This may explain why the email is not sent.

Revision history for this message
Jean-Philippe ROBBE (6p) wrote :

This behavior comes from the fact Company name is filled with Customer name.
This is also why Invoice address and Delivery address is written twice (ie : John DOE, John DOE). Correcting Invoice address correct the issue as well => after that, the "send by email" form populates recipient correctly.

Revision history for this message
Jean-Philippe ROBBE (6p) wrote :

After some readings and better understanding of OpenERP partner concept, now I think I get it :

When a customer create an account in Magento, his address is set to "Default shipping address" and "Default billing address"
When this customer is imported in OpenERP, there's a single partner created, flagged as a company.
Contacts are in someway created and linked to the company but the link is broken :
From the SO form I have access to invoice address, which shows up the contact form, and from there I can access the company form.

But if I go to Customers, and open up the company form, there's no contact linked.

Revision history for this message
Jean-Philippe ROBBE (6p) wrote :

I'll file another bug, with an accurate title.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

According to lp:1290910 and my comment, I reopen this issue because this issue does not come from a broken link between the partner and the address, it is not broken.
However, the reason could be that the mail is not send if the address is inactive, in that case, it would be a bug in OpenERP. Can you check if that is the reason?

Thanks

Revision history for this message
Jean-Philippe ROBBE (6p) wrote :

I did some tests based on your comment :

I did activate manually the addresses in OpenERP (Shipping and Delivery). They now appear when I open the Customer form in the contact list. But the email is still not sent when I click "Send by Email" button. However, it appears now with a recipient in the message log.

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.