Odoo PrestaShop Connector

This module connects Odoo and PrestaShop.

PrestaShop (http://www.prestashop.com/) is a popular e-commerce platform written in PHP/MySQL and published under the Open Software licence v3.0.

This module allows the synchronization of the following objects from PrestaShop to Odoo:

  • Websites
  • Stores and languages
  • Carriers
  • Product categories
  • Products
  • Combinations of products
  • Partner categories
  • Customers

Once these objects are synchronised, it will allow the import of sales orders, together with the related customers.

As an extra feature, you can also export the stock quantities back to PrestaShop.

If you want to export from Odoo to PrestaShop changes made on the products, product categories or product images, you need to install connector_prestashop_catalog_manager module in this same repository.

This connector supports PrestaShop version up to 1.6.11. Maybe later versions are also supported, but they haven't been tested. It uses the webservices of PrestaShop.

Installation

It doesn't require any plug-in in PrestaShop, but requires an extra Python library in Odoo server side, called prestapyt:

https://github.com/prestapyt/prestapyt/

You can use pip install system to install it

sudo pip install prestapyt

Configuration

To configure this module, you need to set several things in both PrestaShop and Odoo:

Steps in PrestaShop

  1. Go to the control panel (usually at <url>/adminps).
  2. Login into the system.
  3. Go to Advanced Parameters > Web service
  4. Add a new entry.
  5. Generate a new API key that will be needed later.
  6. Grant all the needed access according your security policy.

Steps in Odoo

  1. Go to Connectors > PrestaShop > Backends.
  2. Create a new record for registering a PrestaShop backend. You will bind this backend to an specific company and warehouse.
  3. Define the main URL of the PrestaShop web, and the webservice key you got in PrestaShop.
  4. Define other parameters like the discount and shipping products, or if the taxes are included in the price.
  5. Click on "Synchronize Metadata" button. This will bring the basic shop information that you can find on Websites and Stores menus.
  6. Click on "Synchronize Base Data" button. This will import carriers, languages, tax groups and the rest of base data that are needed for the proper work.
  7. Go to Accounting > Configuration > Taxes > Tax Groups, and include for each of the tax definition imported from PrestaShop, the corresponding taxes in Odoo.
  8. Activate the job runner, checking the connector documentation for setting the server correctly for using it in http://odoo-connector.com/guides/jobrunner.html
  9. Alternatively, if you are not able to activate it, you can enable the scheduled job called "Enqueue Jobs".
  10. Activate the scheduled jobs for importing the records you want:
  • PrestaShop - Export Stock Quantities
  • PrestaShop - Import Carriers
  • PrestaShop - Import Customers and Groups
  • PrestaShop - Import Products and Categories
  • PrestaShop - Import Sales Orders
  • PrestaShop - Import suppliers
  • PrestaShop - Payment methods

Usage

To use this module, you need to:

  1. Go to Connectors > Queue > Jobs, and check the correct enqueuing of the tasks.
  2. Check on each menu the resulting imported records (Customers, Sales Orders...)
Try me on Runbot

Test dependencies

Extra libs are required to run the tests: * vcrpy * freezegun

Known issues / Roadmap

  • Work with multiple warehouses.
  • Tests.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Images

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
won't install
by
KORTAS Aladine
on 6/1/20, 8:01 AM

won't install i get Impossible d'installer le module "connector_prestashop" à cause d'une dépendance externe non trouvée : 'module' object has no attribute 'UTC'


by
Mind And Go
on 10/12/20, 10:36 AM

@KORTAS Aladine ,
Your issue is depending on a specific version of pytz, probably.

Also feel free to report issue on the github of the project.

Regards


request for contact
by
Dennis van vliet
on 1/9/20, 3:33 AM

Hi Can you contact us we run Prestashop but just need a one time import from the shop to Odoo. we plan to use the Odoo shop in the future.


Support PS 1.7?
by
diegovanzetti@gmail.com
on 4/24/19, 1:25 PM

Hello, I would like to know if they provide the Odoo connector for Prestashop version 1.7?