Partners addresses in OpenERP are not linked correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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 showing up.
Credits to Jesus for finding the bug !
branch openerp-
Branch openobject-server : Revision 5256
Branch openobject-addons: Revision 9886
Branch openserver-web : Revision 4155
Magento 1.8.1 CE
Thanks for reporting.
The behavior observed here is normal. It replicates the Magento's behavior.
A user on Magento owns an address book where he can register his addresses.
When he places his order, he can choose one of the address of the address book or create a new one. For every new sales order, Magento copies the address just for the sales order if it is part of the address book. That means that the addresses of the sales order are always copies of the addresses of the address book (the ID is different than the one of the address book and we can no longer relate them).
Thus, the connector does 2 things:
- It imports from Magento all the addresses of the address book, so they will be displayed in the contacts of the user.
- When it imports a sales order, the addresses are imported as inactive so they will only be displayed in the sales order and related documents (delivery order(s) / invoice(s)) but not in the contacts because those ones are "one-shot" addresses.