Open ulbiopro opened 9 years ago
Same problem.
Openerp V7 with magento 1.9.0.1
HOw can I solve this¿?
Hi Ulli
Did you have any success fixing this issue? We're facing the exactly same one with Odoo V8 + Magento 1.9.2.2.
Would be awesome if we could get some more insights on the issue.
Best
Hi, same issue here. Odoov8 <-> Magento 1.9
Hello, we use the Odoo-Magento-Connector and are pretty happy about it's functionality so far.
The only big issue we found is the import of customers after changing the default billing or shipping address on magento.
The error from odoo-log is following:
This error is due to constraint in magentoerpconnector/partner.py Class MagentoAddress:
This duplicate key violation error is caused when an address is merged with a root address.
The Steps to reproduce:
Create a customer Place an order with the created customer Import that order into Odoo. (everything is fine until here) Add a second customer address in Magento and set it as default billing address Place a new order and import it (or just import partners) into Odoo Exception (already mentioned above)
What seems to happen is the following: Odoo imports a new partner contact/address which is now the default billing address. In that case it tries to create a new binding in the magento_address table. Because the associated openerp_id already exists it isn’t possible to create a new entry with the same openerp_id.
We are using: Magento V1.9.2.1 and Odoo V8.0-20150831
A possible workaround is to disable merging in the class PartnerAddressBook / method _get_address_infos:
Another thing we couldn’t figure out: if we’re working with a „Job-Worker“ the job is set to failed after the duplicate key violation error appears. But: If we’re working with a „Job-Runner“ the job is stuck in status „started“ and not set to „failed“.
regards Ulli