[FIX] Avoid overwrite name field over a company customer#202
[FIX] Avoid overwrite name field over a company customer#202
Conversation
|
Hi, Thanks for your PR! Could you give an example? With the current behaviour and your expected result. |
|
We have already created a company with magento_connector on Odoo. This customer is configurated has follows in Magento... The customer in ERP has been created has follows: If latter we update the customer in Magento,the information when we import to Odoo is not properly setted Customer information: name --> the information in Magento "name" field in the address object Thanks |
|
Ok, I think I get it. |
|
Mapper seems is working fine, _get_address_infos function in PartnerAddressBook. Here the code set the company field in customer name on Odoo but after this "write" the partner information is being overwritten while executes function "run" for the address import. |
|
Still, you should probably not need to modify the importer, the address mapper could return the correct name at first place. |
When you are importing an update of an company customer the "company" field is not saved properly in field "name".