Community mailing list archives

community@mail.odoo.com

Re: New Magento to Odoo 8.0 Connector

by
loic
- 12/14/2014 17:50:26
Hello,

Is it possible to explain how to resolve the stock when there is an update 'in admin) magento to odoo because we can apply also a new stock in Odoo.
In this cas Magento has a stock and Odoo another. 

What is the way in our odoo

Magento can manage the Odoo stock
Odoo manage the Magento stock

The update is in realtime or not ?


thanks






------------------------
Cordialement,
loïc Richard

2014-12-09 1:32 GMT-05:00 Samer Nefawa <s.nefawa@onestein.nl>:
Dear, 
Separately from the technical description. How complete is the connection? Is there any description for which functionalities are covered/ added/ deducted? 

Regards 

 

Samer Nefawa
General Manager

<img border="0" name="Afbeelding1" src="cid:emd95af6e7-edf9-4fc9-b57d-1c9275809134@lenosamer" width="16" align="bottom" height="12"> +31 88 627 0421
<img border="0" name="Afbeelding2" src="cid:emfa2c1d00-9627-4bc1-ad1c-c1fa6f80a565@lenosamer" width="16" align="bottom" height="12"> +31 6 3912 3255
<img border="0" name="Afbeelding3" src="cid:em192f698c-1a5c-47d3-bf8d-b8cff4d4cff9@lenosamer" width="16" align="bottom" height="12"> live: samer.nefawa
<img border="0" name="Afbeelding4" src="cid:emd6129e08-f89a-407f-b8a5-b10b9b44a129@lenosamer" width="16" align="bottom" height="12"> s.nefawa@onestein.nl

Onestein B.V.
<img border="0" name="Afbeelding5" src="cid:em74b12814-1caf-4c43-96a8-836a31bb0f67@lenosamer" width="16" align="bottom" height="12"> +31 88 627 0400 
<img border="0" name="Afbeelding6" src="cid:em6e9fcf6e-0222-44da-9f6f-c7e60098b0e9@lenosamer" width="16" align="bottom" height="12"> www.onestein.eu
<img border="0" name="Afbeelding7" src="cid:em28c89c3d-9466-4816-a549-e2e9588e01d1@lenosamer" width="16" align="bottom" height="12"> onestein_erp
<img border="0" name="Afbeelding8" src="cid:emd929dbef-89c7-464c-978f-54ce1785a118@lenosamer" width="16" align="bottom" height="12"> onestein

<img border="0" name="Afbeelding9" src="cid:em35775eb4-c52f-4152-938a-30998ef60f9b@lenosamer" width="16" align="bottom" height="12"> Amsterdam - Keizersgracht 62-64
<img border="0" name="Afbeelding10" src="cid:em53bfee97-9937-4d26-80a0-411e49624d49@lenosamer" width="16" align="bottom" height="12"> Oosterhout - Beneluxweg 37
<img border="0" name="Afbeelding11" src="cid:em2051dbad-6830-4ed7-9550-88b3907a1139@lenosamer" width="16" align="bottom" height="12"> Antwerpen - Brusselsestraat 51

<img border="0" name="Afbeelding12" src="cid:emb04392e7-b5f4-4878-a70a-63238219ac92@lenosamer" width="183" align="bottom" height="60">



Op 9 dec. 2014 om 04:18 heeft OpenERP Master <openerpmaster@gmail.com> het volgende geschreven:

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.

You can see this check being performed here: https://github.com/aliomattux/mage2odoo/blob/master/models/partner.py#L51

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.

On Mon, Dec 8, 2014 at 7:03 PM, Loïc Richard <loic.richard1@free.fr> 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



------------------------
Cordialement,
loïc Richard

2014-12-07 22:09 GMT-05:00 Loïc Richard <loic.richard1@free.fr>:
thank you for your answer and explaination.


------------------------
Cordialement,
loïc Richard

2014-12-07 20:22 GMT-05:00 OpenERP Master <openerpmaster@gmail.com>:

@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.

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.

For anyone interested, the current process to get it installed is simple.

1. 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).

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_method

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.

Again,
If 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.

Enjoy

On Sun, Dec 7, 2014 at 4:23 PM, Loïc Richard <loic.richard1@free.fr> 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.


------------------------
Cordialement,
loïc Richard

2014-12-07 14:50 GMT-05:00 Pedro Manuel Baeza Romero <pedro.baeza@gmail.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.

Shall I advice you to try to follow this way, and use your work and experience for making the migration of the OCA modules?

Regards.

2014-12-07 20:23 GMT+01:00 OpenERP Master <openerpmaster@gmail.com>:
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.

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.

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:
https://github.com/aliomattux/payment_method
https://github.com/aliomattux/mage2odoo
https://github.com/aliomattux/mage2odoo_authorizenet


Feedback appreciated.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe