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:

Comments

Anusha E: after installing module getting "No handler found."error".

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Dario LodVaz says:

    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!!

    1. Prajul P T says:

      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

      1. Dario LodVaz says:

        Thanks for the reply!!
        I try it with 7.0 version

        1. matthijs says:

          What branch do i need to install into openerp 7?

      2. Kim says:

        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?

      3. Nicholas says:

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

      4. Philippe says:

        i got the same error with decorator
        the decorator.py in the the python installation is the same you provide
        any suggestion?

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

    1. Prajul P T says:

      Hi,

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

  3. Joe says:

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

  4. Skip.Yao says:

    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

    1. pad says:

      It now runs on OpenERP 7.0?

  5. Anonymous says:

    Hello sir, I see in launchpad that the connector for OE7 is in experimental status, and the last updates date from early february (a bit old for a connector that is supposedly being actively ported). Is your install still properly working? what branch should we be installing?
    Thanks!

    1. ttwhy says:

      i think they have stopped development until the refunding phase is over. If there is a 7.0 branch which is working -> let me know. I am running in the same issues (missing import for "only_for_reference" like all the others.

      1. Prajul P T says:

        Hi,

            We have just migrated the older connector to work with OE7 as i mentioned in my blog. The new version in launchpad is developed as a new architecture and it is in development state.

        1. Dr. Daniel Frey says:

          Please Sir,
          give us the exact download location (branch) for the migrated older connector.
          Thanks
          Dr. Daniel Frey

          1. Prajul P T says:

            Hi Sir,

                    We have not uploaded the module to any version control systems like launchpad now. If you want the module please contact at contact@zbeanztech.com.

  6. Puneet says:

    Is any one able to Install Connector for 7.0.

    1. Anonymous says:

      It is simple to install connector for v_7. Download tarball file and install

  7. NAYAN says:

    Can we make configurable products on magento using this module?

  8. Anonymous says:

    ich have Problem!Please help.
    File “C:\Programme\OpenERP 7.0-20130830-231101\Server\server\openerp\addons\magentoerpconnect\magerp_osv.py”, line 42, in
    AttributeError: type object ‘Model’ has no attribute ‘_transform_and_send_one_resource’
    Any idea?A lot of thanks!!

  9. Anusha E says:

    after installing module getting “No handler found.”error

© 2020 Zesty Beanz Pvt Ltd All Rights Reserved.