Community mailing list archives
Re: New Magento to Odoo 8.0 Connectorby
I copied this design from Openlabs connector, I like it. In future versions I might change it to not be case sensitive, or be a little smarter about small changes needlessly creating new addresses, but the problem your describing doesn't exist in this connector.
You can see this check being performed here: https://github.com/aliomattux/mage2odoo/blob/master/models/partner.py#L51
Hello,I personally do not like the address changes since v7 (OpenERP). That being said, this isn't a problem. When an order is imported, each address field is verified against the existing address of a partner. If any part of the address is different, a new address record is created, instead of updating. I completely agree that no part of a previous document should change just because the partner changed their address.
On Mon, Dec 8, 2014 at 7:03 PM, Loïc Richard <email@example.com> wrote:
I have a question,odoo has a problem with the address.If you create lot of orders with a customer and this customer change this default address (city, zip, ...), This change all the invoice.In ecommerce platform, the customer can change in this administration this default address.For example, the default address and address payment can be different.In this case, if there is invoices created with default address and after another payment via new address payment, all the invoice can be change if you don't create a new address.I put you this question, because I have been the same problem.For me I resolve this like (but there no good solution to resolve that) :- The default address can not be deleted and change- The payment address is a new address.How have you solved this problem in your magento contribution.What isyour way ?thank you------------------------
loïc Richard2014-12-07 22:09 GMT-05:00 Loïc Richard <firstname.lastname@example.org>:thank you for your answer and explaination.------------------------
loïc Richard2014-12-07 20:22 GMT-05:00 OpenERP Master <email@example.com>:EnjoyIf you want to use the module and can't install it, email me directly and i'll help you for free. Asking for help here probably wouldn't be good as it would spam a lot of email accounts.Again,3. Lastly, you need to install a Magento server side module. This is because the built in API has very limited functionality. The magento side module is a fork of the original Openlabs magento module, except I remove all code that affects core functionality, and added new methods. It should be safe to install. Link Here: https://github.com/aliomattux/Openobject_OpenobjectConnector You place the xml file in app/etc/modules, and the Openobject folder in app/code/local.2. You have to install the payment_method module, also linked in the original email. This module is required because Odoo has no concept of a payment method on a sales order, however Magento does. You can install it first, or you can just have it available when you install the Magento module and it will automatically be installed. A link to this module is here: https://github.com/aliomattux/payment_method1. This module requires a Magento API Library, the very same one in use by the OCA connector. You can install it on any linux machine with the command 'pip install magento'. This is not an Odoo module, but a python library for those who don't know. You can also learn about it here: https://pypi.python.org/pypi/magento. It is a simple wrapper for the xmlrpc interface. (Later version of my connector will use Magento REST Api).For anyone interested, the current process to get it installed is simple.I tested this with a new install on the current 8.0 branch. I have no idea what your problem is without more detail. If you or anyone else wants to install the connector and test it out, send me a direct email and I would be happy to provide you free assistance to get things in motion.@Loic,I will be developing documentation this coming week, and then resuming the connector development for the next month or so. There is still a lot of work to do. This code has been tested, but it may not work for you. It needs a lot of testing.On Sun, Dec 7, 2014 at 4:23 PM, Loïc Richard <firstname.lastname@example.org> wrote:Is possible to have the process toinstall our module.I try to upload your module via Odoo administration (module add on installed). But it does'nt work.------------------------
loïc Richard2014-12-07 14:50 GMT-05:00 Pedro Manuel Baeza Romero <email@example.com>:Thanks for the great effort you have made, but it's a pity that you have opted for a totally different work from the OCA Magento connector (https://github.com/OCA/connector-magento), that it's already developed for v7 and uses a strong infrastructure framework for making the communications. If you would work in migrate and enhance this version for v8 instead of doing another one, now there will be two uncompatible ways of getting a Magento connector for Odoo: OCA modules and yours. People will opt for a one with more support, and OCA have all the cards to win.Regards.
Shall I advice you to try to follow this way, and use your work and experience for making the migration of the OCA modules?2014-12-07 20:23 GMT+01:00 OpenERP Master <firstname.lastname@example.org>:Feedback appreciated.Some of the code was inspired or migrated from the original 6.1 MagentoERPConnect and the Openlabs 7.0 connector. I did not finish the credits, such yet.Hi everyone,For the past 3 months I have been developing a new magento connector to Odoo 8.0. I would like to share it with everyone and ask for any feedback. Good or bad, I would appreciate it.
The code is still under active development, so it contains things like print statements, some not the best code. It works perfectly for me, but I only designed it around American business processes, not considering EU or other countries. Also, it does not use the new 8.0 API. I started development before knowing about it. It will be implemented in later versions.I also forked the Openlabs magento side module and reworked a lot of the methods, and removed a lot of code from it.Here is a link to the modules: