Prestashop-OpenERP connector New Generation
prestashoperpconnect · OCA/connector-prestashop
-
Security25/25No findings
-
Activity0/25Last human commit 141 months ago
-
Required by20/252 modules depend on it
-
Maturity12/25In 2 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
MailMessage— Class 'MailMessage' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceaccount_invoice— Class 'account_invoice' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceaccount_invoice— Class 'account_invoice' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceir_cron_import_sale_orders— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. (7 occurrences in this file) migration-cron-numbercall · sourceprestashop_backend— Class 'prestashop_backend' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (15 occurrences in this file) migration-old-api-base · sourceprestashop_backend— Class 'prestashop_backend' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (17 occurrences in this file) migration-old-style-fields · sourceprestashop_config_settings— Class 'prestashop_config_settings' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprestashop_config_settings— Class 'prestashop_config_settings' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceprestashop_delivery_carrier— Class 'prestashop_delivery_carrier' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceprestashop_delivery_carrier— Class 'prestashop_delivery_carrier' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceprestashop_delivery_carrier— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceprestashop_product_product— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceprestashop_res_partner— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. (3 occurrences in this file) migration-sql-constraints · sourceprestashop_shop_group— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. (7 occurrences in this file) migration-sql-constraints · sourceprestashoperpconnect_installed— Class 'prestashoperpconnect_installed' still inherits from the old-style `orm.AbstractModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceproduct_category— Class 'product_category' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (10 occurrences in this file) migration-old-api-base · sourceproduct_category— Class 'product_category' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (10 occurrences in this file) migration-old-style-fields · sourceproduct_connector_presta_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceproduct_normal_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceproduct_product— Class 'product_product' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (8 occurrences in this file) migration-old-api-base · sourceproduct_product— Class 'product_product' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (8 occurrences in this file) migration-old-style-fields · sourceres_partner— Class 'res_partner' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (5 occurrences in this file) migration-old-api-base · sourceres_partner— Class 'res_partner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (5 occurrences in this file) migration-old-style-fields · sourceres_partner— Class 'res_partner' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (4 occurrences in this file) migration-old-api-base · sourceres_partner— Class 'res_partner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (4 occurrences in this file) migration-old-style-fields · sourcesale_order_state— Class 'sale_order_state' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (8 occurrences in this file) migration-old-api-base · sourcesale_order_state— Class 'sale_order_state' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (8 occurrences in this file) migration-old-style-fields · sourceview_prestashop_backend_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (3 occurrences in this file) migration-view-tree-tag · sourceview_prestashop_delivery_carrier_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_prestashop_res_partner_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceview_sale_order_state_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (6 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (5 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.connector.event`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) (5 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.connector.backend`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools`) (7 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) (5 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.connector.connector`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.connector.exception`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.connector.unit.backend_adapter`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) (7 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.decimal_precision`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module connects OpenERP and Prestashop.
Prestashop (http://www.prestashop.com/) is a popular e-commerce plateform written in PHP/MySQL and published under the Open Software licence v3.0.
This module allows the synchronisation of the following objects between OpenERP and Prestashop :
- shop groups and shops
- currencies
- languages
- countries
- carriers
- products
Once these objects are synchronised, it will allow the import of orders, together with the related customers and addresses.
This connector supports Prestashop 1.5 and uses the webservices of Prestashop ; it doesn't require any plug-in in Prestashop.
This connector was started by Akretion (http://www.akretion.com/) and Camptocamp (http://www.camptocamp.com/) during a code sprint that took place in Seythenex (Haute-Savoie, France) on 6-10 February 2012. Publishing this connector as free software was possible thanks to a large R&D effort of Akretion and Camptocamp (with some help of Julius Network Solutions). Akretion and Camptocamp form the "PrestashopERPconnect Core Editors".
This connector is built on a very solid basis, but still requires deep knowledge of both OpenERP, Prestashop and the connector's internals to be deployed successfully in production. The PrestashopERPconnect Core Editors are available to help you deploy this solution for your Prestashop-based e-commerce business.
Dependencies
- Odoo dependencies
- Python dependencies
- unidecode, requests
- System dependencies
- None
- Required by
- prestashoperpconnect_catalog_manager, prestashoperpconnect_customize_example
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 26
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
combination_connector_presta_form_view |
prestashop.product.combination | form | New | |
combination_connector_presta_tree_view |
prestashop.product.combination | tree | New | |
product_connector_presta_form_view |
prestashop.product.product | form | New | |
product_connector_presta_tree_view |
prestashop.product.product | tree | New | |
product_normal_form_view |
product.product | form | Inherits connector_base_product.product_normal_form_view | |
view_order_form |
sale.order | form | Inherits sale.view_order_form | |
view_partner_category_form |
res.partner.category.form | res.partner.category | form | Inherits base.view_partner_category_form |
view_partner_form |
res.partner.form | res.partner | form | Inherits connector.view_partner_connector_form |
view_prestashop_address_form |
prestashop.address.form | prestashop.address | form | New |
view_prestashop_address_tree |
prestashop.address.tree | prestashop.address | tree | New |
view_prestashop_backend_form |
prestashop.backend.form | prestashop.backend | form | New |
view_prestashop_backend_tree |
prestashop.backend.tree | prestashop.backend | tree | New |
view_prestashop_config_settings |
Connector Settings | connector.config.settings | Inherits connector.view_connector_config_settings | |
view_prestashop_delivery_carrier_form |
prestashop.delivery.carrier | form | New | |
view_prestashop_delivery_carrier_tree |
prestashop.delivery.carrier | tree | New | |
view_prestashop_res_partner_form |
prestashop.res.partner.form | prestashop.res.partner | form | New |
view_prestashop_res_partner_tree |
prestashop.res.partner.tree | prestashop.res.partner | tree | New |
view_prestashop_sale_order_state_form |
prestashop.sale.order.state.form | prestashop.sale.order.state | form | New |
view_prestashop_sale_order_state_tree |
prestashop.sale.order.state.tree | prestashop.sale.order.state | tree | New |
view_prestashop_shop_form |
prestashop.shop.form | prestashop.shop | form | New |
view_prestashop_shop_group_form |
prestashop.shop.group.form | prestashop.shop.group | form | New |
view_prestashop_shop_group_tree |
prestashop.shop.group.tree | prestashop.shop.group | tree | New |
view_prestashop_shop_tree |
prestashop.shop.tree | prestashop.shop | tree | New |
view_sale_order_state_form |
sale.order.state.form | sale.order.state | form | New |
view_sale_order_state_tree |
sale.order.state.tree | sale.order.state | tree | New |
view_shop_form |
sale.shop | form | Inherits sale.view_shop_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 59
No new fields.
Public methods (1)-
action_move_create(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (12)-
import_carriers(self, cr, uid, ids, context=None) -
import_customers_since(self, cr, uid, ids, context=None) -
import_payment_methods(self, cr, uid, ids, context=None) -
import_products(self, cr, uid, ids, context=None) -
import_record(self, cr, uid, backend_id, model_name, ext_id, context=None) -
import_refunds(self, cr, uid, ids, context=None) -
import_sale_orders(self, cr, uid, ids, context=None) -
import_stock_qty(self, cr, uid, ids, context=None) -
import_suppliers(self, cr, uid, ids, context=None) -
synchronize_basedata(self, cr, uid, ids, context=None) -
synchronize_metadata(self, cr, uid, ids, context=None) -
update_product_stock_qty(self, cr, uid, ids, context=None)
No new fields.
Public methods (1)-
resync(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
recompute_prestashop_qty(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
recompute_prestashop_qty(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
create(self, cr, uid, vals, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
copy(self, cr, uid, id, default=None, context=None) -
update_prestashop_quantities(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (5)-
action_cancel(self, cr, uid, ids, context=None) -
action_done(self, cr, uid, ids, context=None) -
create(self, cr, uid, vals, context=None) -
get_stock_location_ids(self, cr, uid, context=None) -
update_prestashop_quantities(self, cr, uid, ids, context=None)
Loading…