India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Magento for OpenERP 7

Contact Form


Prajul P T's picture

Magento for OpenERP 7

Magneto is a eCommerce platform build on open-source technology where the user have unlimited flexibility over his eCommerce store. Magento when integrated with OpenERP forms an strong platform for managing eCommerce store. Magento when integrated with OpenERP 7 created an eCommerce store management system with user friendly interface.

To integrate the magento with OpenERP 7, the basic requirements are OpenERP 7 and Magento. Magento should have the integration module installed in magento side which can be downloaded from https://code.launchpad.net/magentoerpconnect. After installing the modules in magento and OpenERP 7, we can see some new menus being created by the module.

Configuration:

After installing the module we have to configure OpenERP to communicate with magento. We have to create a magento instance in OpenERP 7. This can be done from MagentoERPconnect -> Magento Instances. A from view of the magento instance creation form is given below:

 

In the form view, the user can enter Name for the instance he is creating, Referential Version -  the version of the magento used, Location - address in which the magento can be accessed, Username - username of a root user in magento, Password - Password of the user in magneto, Debug - its a boolean field which when enables show the log of the process being done when syncing to and from magento. When this configuration is done some new buttons becomes visible. A screen shot is shown below:

Initial Imports :

Some initial imports has to be done before we start importing product and orders from magento like importing mapping template etc. In the magento instance, we can see a section called "Compulsory" in which there are two buttons called Reload referential mapping template and Synchronize referential setting. These two has to be done before we start importing. Reload referential mapping template import all the mapping from the csv in the module magentoerpconnect to OpenERP. These mapping template is used to map magento field with OpenERP. We can specify in which way the fields ha to be mapped ie; function mapping or direct mapping etc. When this button is pressed, we can see the mapping lines being loaded to the one2many field in the magento instance defined. A screenshot of the mapping lines is shown below:

Each line specifies each model that is imported from magento to OpenERP. If you open one record, you could see the method defined to map each field in that model. A screenshot is shown below:

Now as we have imported the mapping lines, we can now import mageto shops, magento website etc from magento. This can be done by pressing the button "Synchronize Referential Setting" in the magento instance. Now we have imported some of the compulsory imports in mageto. Now we can import the details like customers, product etc from magento.

In magento instance there is a section called "Optional - Initial Import" from where we can import product, customers, customer group, product categories, product images and product links. In this section you could see 8 buttons as:

1 - Import Customer Groups(Partner Categories) - Imports customer groups from magento

2 - Import Product Categories - Import product categories from magento

3 - Import Product Attribute Sets - Import product attributes from magento. Attributes are the new fields that are used in the magneto to store details for product, partner etc. Each attribute has a set to which the attribute belong. This button imports the attribute set from magento. You can see the attribute set imported from MagentoERPconnect -> Attributes and Sate -> Attribute Sets. After the button is pressed you could see a new entry created. If we open the record we can see a button called "Update Attribute" . This button update or create all the attributes belonging to this attribute set. A screen shot is given below:

We can see all the attributes from MagentoERPconnect -> Attributes and Set ->Attributes. If we open one attribute, we can see all the properties of the attributes like field type, based on which template the attribute is created etc. A screenshot is attached below:

Some attribute can be a dropdown. The values of the attribute is stored in MagentoERPconnect -> Attributes and Set -> Attribute Options. A screenshot is given below:

4 - Import Attribute Groups - Import attribute groups from magento. Attributes Groups can be seen from MagentoERPconnect -> Attributes and Set -> Attribute Groups.

5 - Import Product Attributes - Import product attributes.

6 - Import Products - Import product from magento. We can import product along with the image and links by enabling the checkbox "With Image" and "With Links". The field "Last Imported Product Id" gives the magento id of the product last imported. We can see the imported product from Sales -> Products -> Products. A screenshot is shown below:

To view the image of the product in magento, open the product record, you can see a tab called "Images" There will be the image record created in this tab. A screenshot is shown below:

We can see the magento imported field details of the product by clicking on the button "Open Magento Fields" in the product form view. A screenshot is shown below:

In magento instance, in "Advanced" tab, we can find a button called "Import All Partners" which imports all the partners from magento to OpenERP. "Last imported Partner Id" gives the Magento id of the last partner imported. The imported Partners can be viewed from Sales -> Sales -> Customers. A screenshot is shown below:

If the customer has a separate invoice and delivery address in magento, there will be two customers created. The main customer will be a company and the next customer comes as a contact as the main customer. For example, the Customer Prajul P T has two address in magento so in OpenERP when the partners are imported, the main customer will be assigned with one address and the contact will be assigned another address. The form view of the customer Prajul P T is shown below:

Now we have successfully imported product, partner we can now import orders from Magento. Create an sale order from magento. To import sale orders from magento, go to MagentoERPconnect -> Core Settings -> Magento Shops. In here you could see a section called "Orders". A screenshot is shown below:

Press the button "Import Orders". This will import newly created orders in magento. You could see the imported orders from Sales -> Sales -> Quotations. A screen shot of a imported order is shown below:

Now we can confirm, make delivery, make invoice for the order from OpenERP. You could export the invoice and delivery order created for the order to magento by clicking the button "Export Invoices" and "Export Shipping" in "Magento Shops".You could update the status of the sale order bu clicking the button "Update Orders State on Channel". A screen shot of the exported invoices and delivery order from OpenERP to Magento is shown below:

Magento Invoice

Magento Shipment

We can export the the details regarding the product from OpenERP to Magento including stock levels by clicking the button "Export Catalog" in "Catalog" section in Magento Shop.

* This is based on the migration of magentoerpconnect module using the old architecture.

1 - Import Customer Groups(Partner Categories) - Imports customer groups from magento
2 - Import Product Categories - Import product categories from magento
3 - Import Product Attribute Sets - Import product attributes from magento. Attributes are the new fields that are used in the magonto to store details for product, partner etc. Each attribute has a set to which the attribute belong. This button imports the attribute set from magento. You can see the attribut set imported from MagentoERPconnect -> Attributes and Sate -> Attribute Sets. After the button is pressed you could see a new entry created. If we open the record we can see a button called "Update Attribute" . This button update or create all the attributes belonging to this attribute set. A screen shot is given below:

Skip.Yao's picture

Hi Prajul,I use Magento for

Hi Prajul,I use Magento for OpenERP6.0.3 almost a year ,it works great.

These days ,I installed Magento for OpenERP7,I tried many time,at last failed to install.

Someboday said, the extension has not been migrated to OpenERP 7 yet.What can i do?

I really want to try the new function in openerp7.

The mistake is below: "cannot import name only_for_referential"

File "/usr/lib/pymodules/python2.6/openerp/addons/magentoerpconnect/magerp_osv.py", line 35, in
from base_external_referentials.decorator import only_for_referential
ImportError: cannot import name only_for_referential

pad's picture

It now runs on OpenERP 7.0?

It now runs on OpenERP 7.0?

Joe's picture

Please, post a howto and the

Please, post a howto and the addsons ... the install of the downloads from magentoerpconnect fails.

Jessica Silber's picture

Hi Prajul, During category

Hi Prajul,

During category import i am getting the following error:
Validate Error: The value "editora" for the field "default_sort_by" is not in the selection
Please suggest me!

To acquire more information about magento conversion, click here

Prajul P T's picture

Hi,      Please import all

Hi,

     Please import all attribute and attribute options and then try again..

Dario LodVaz's picture

Great!! Thanks! The branch

Great!! Thanks!

The branch "bzr branch lp:magentoerpconnect" has 11 modules for openerp. I thought I had to install all, but if I do it, at the time of updating the list of modules,

OpenERP give me this error:
File "/opt/openerp/modulosdario/magentoerpconnect/magerp_osv.py", line 35, in
from base_external_referentials.decorator import only_for_referential
ImportError: No module named base_external_referentials.decorator

Indeed the module base_external_referentials.decorator don't exist... can you help me?

Thanks!!

Prajul P T's picture

Hi,     In which version of

Hi,

    In which version of OpenERP are you tring to install the module? Please make sure that the module belong to the correct version and try again. decorator.py for OpenERP 6.1 can be downloaded from here: http://dl.dropbox.com/u/88263455/decorator.zip

Philippe's picture

i got the same error with

i got the same error with decorator

the decorator.py in the the python installation is the same you provide

any suggestion?

Nicholas's picture

Hi, thanks for this article.

Hi, thanks for this article. Where can I find the module for Openerp 7.0 ?

Kim's picture

I download the

I download the lp:magentoerpconnect and the folder got magentoerpconnect, magentoerpconnect_openerp_invoice, magentoerpconnect_bundle magentoerpconnect_partner_surname, magentoerpconnect_bundle_split magentoerpconnect_payment, magentoerpconnect_customer_fiscal_category magentoerpconnect_product_variant, magentoerpconnect_init_stock magento_product_auto_sku, magentoerpconnect_magento_invoice

and i update modules list 1 by 1 but also get error message.
so can i know where you get the module?