Coder Social home page Coder Social logo

connector-prestashop's Introduction

Runboat Pre-commit Status Build Status codecov Translation Status

connector-prestashop

Module around Prestashop

Available addons

addon version maintainers summary
connector_prestashop 14.0.2.0.2 PrestaShop-Odoo connector
connector_prestashop_environment 14.0.1.0.0 Connector Prestashop Environment

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


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.

connector-prestashop's People

Contributors

bguillot avatar ffernandez-planetatic avatar florian-dacosta avatar flotho avatar guewen avatar gurneyalex avatar hailangvn avatar ivorra78 avatar jesusvmayor avatar llacroix avatar mpoch-planetatic avatar nbessi avatar nilshamerlinck avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar pedrobaeza avatar qtheuret avatar sbidoul avatar sergio-teruel avatar simahawk avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connector-prestashop's Issues

Odoo breaks after run pip install -r requirements.txt

Hello,

I've a fresh and running install of Odoo in a CentOS 6.7 (Virtual Box) which has a copy of Prestashop from a production environment...

I followed the steps from here for install Odoo:
https://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/

And "snapshooted" the state of Virtual Box...

Then tryed to follow your guide, and using the akretyon prestapyt or running the pip for requirements from your sources, results in Odoo stops works...

Here is the output from install procedure from pip

(odoo) [odoo@mercurio connector-prestashop-8.0]$ pip install -r requirements.txt
Obtaining prestapyt from git+git://github.com/akretion/prestapyt.git#egg=prestapyt (from -r requirements.txt (line 1))
  Cloning git://github.com/akretion/prestapyt.git to /home/odoo/odoo/src/prestapyt
Collecting requests==0.14.2 (from -r requirements.txt (line 2))
  Downloading requests-0.14.2.tar.gz (361kB)
    100% |████████████████████████████████| 368kB 877kB/s 
Collecting httplib2 (from prestapyt->-r requirements.txt (line 1))
  Downloading httplib2-0.9.2.zip (210kB)
    100% |████████████████████████████████| 215kB 708kB/s 
Building wheels for collected packages: requests, httplib2
  Running setup.py bdist_wheel for requests ... done
  Stored in directory: /home/odoo/.cache/pip/wheels/a7/d7/7b/e60ca9d7e24c3a102a2ffdaf27031ec9c3fcffdff3f1060de8
  Running setup.py bdist_wheel for httplib2 ... done
  Stored in directory: /home/odoo/.cache/pip/wheels/c7/67/60/e0be8ccfc1e08f8ff1f50d99ea5378e204580ea77b0169fb55
Successfully built requests httplib2
Installing collected packages: httplib2, requests, prestapyt
  Found existing installation: requests 2.10.0
    Uninstalling requests-2.10.0:
      Successfully uninstalled requests-2.10.0
  Running setup.py develop for prestapyt
Successfully installed httplib2-0.9.2 prestapyt requests-0.14.2

Restarted odoo server and log said:

2016-05-27 22:05:23,978 3002 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/odoo/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
  File "/home/odoo/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/openerp/service/server.py", line 291, in app
    return self.app(e, s)
  File "/opt/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/openerp/http.py", line 1292, in __call__
    self.load_addons()
  File "/opt/odoo/openerp/http.py", line 1313, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/odoo/openerp/modules/module.py", line 80, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/odoo/addons/calendar/__init__.py", line 22, in <module>
    from . import calendar
  File "/opt/odoo/addons/calendar/calendar.py", line 14, in <module>
    from dateutil import rrule
  File "/home/odoo/odoo/lib/python2.7/site-packages/dateutil/rrule.py", line 19, in <module>
    from six.moves import _thread
ImportError: cannot import name _thread

Resulting in an error 500... Refreshing browser (chrome in Ubuntu 14.04 LTS), log not changes but in the browser:

Could not get content for /web/static/lib/cleditor/jquery.cleditor.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/jquery.textext/jquery.textext.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/select2/select2.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/bootstrap/css/bootstrap.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/lib/jquery.ui.notify/css/ui.notify.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/src/css/base.css defined in bundle 'web.assets_backend'.
Could not get content for /web/static/src/css/data_export.css defined in bundle 'web.assets_backend'.
Could not get content for /base/static/src/css/modules.css defined in bundle 'web.assets_backend'.
Could not get content for /im_chat/static/src/css/im_common.css defined in bundle 'web.assets_backend'.
Could not get content for /im_chat/static/src/css/im_chat.css defined in bundle 'web.assets_backend'.
Could not get content for /web_calendar/static/src/css/web_fullcalendar.css defined in bundle 'web.assets_backend'.
Could not get content for /web_calendar/static/lib/fullcalendar/css/fullcalendar.css defined in bundle 'web.assets_backend'.
Could not get content for /web_diagram/static/src/css/base_diagram.css defined in bundle 'web.assets_backend'
Could not get content for /web_gantt/static/src/css/gantt.css defined in bundle 'web.assets_backend'.
Could not get content for /web_gantt/static/lib/dhtmlxGantt/codebase/dhtmlxgantt.css defined in bundle 'web.assets_backend'.
Could not get content for /web_graph/static/src/css/graph.css defined in bundle 'web.assets_backend'.
Could not get content for /web_graph/static/src/css/nv.d3.css defined in bundle 'web.assets_backend'.
Could not get content for /web_kanban/static/src/css/kanban.css defined in bundle 'web.assets_backend'.
Could not get content for /web_tests/static/src/css/web_tests.css defined in bundle 'web.assets_backend'.
Could not get content for /web_view_editor/static/src/css/view_editor.css defined in bundle 'web.assets_backend'.

And unformated bullet item "Settings", the Odoo logo, "Edit Company Data" and "powered by Odoo" legend... Nothing else...

Before writte these lines I check twice this behavior (thanks to use a Virtual Box) and checked owner, group and permissions... Nothing changed because they are correct...

How can I get Odoo and your connector working?

Thanks in advance...

Error Product Export from Odoo 9 to Prestashop 1.6

Hello,

I'm currently having Problems with Prestashop Connector Add-On for Odoo Version 9.
The First Problem: Documentation for the Job Runner, with the Information in the Documentation it will not work, I found another Person who also had Problems getting it to run, the Answer to his Problem: one should follow strictly the Documentation. Well If you follow it, it will not work, the Addon queue_job dosent exist.
server_wide_modules= web,web_kanban,queue_job.

I only got the Job Runner working with server_wide_modules= web,web_kanban,connector.

Now I have a Problem which needs attention:
I can Import everything from Prestashop Version 1.6.1.2 to Odoo 9, Orders, Products and so forth. Works fine an fast.
Now I made some Changes to the Products and Pricing Information in Odoo, as soon as I save the changes, I get an error Message from the Job Runner.

Error:
Export a record on PrestaShop
UUID
65b7e007-c55a-429b-bf9b-6ca5ca2f004d
Aufgabe
openerp.addons.connector_prestashop.unit.exporter.export_record('prestashop.product.template', 1, {u'list_price': 1299})
Job-Funktion
openerp.addons.connector_prestashop.unit.exporter.export_record
Kanal
root.prestashop
Priorität
20
Ausführen nur nach

Benutzer-ID
Administrator

Anlagedatum
26.12.2017 23:07:57
Einreihungszeitpunkt
26.12.2017 23:07:58
Start Datum
26.12.2017 23:07:58
Erledigt am

Aktueller Versuch / Maximale Versuche 1 / 5 If the max. retries is 0, the number of retries is infinite.
Ausnahme Information
Traceback (most recent call last):
File "/opt/odoo_addons/shop_connect/connector/controllers/main.py", line 90, in runjob
self._try_perform_job(session_hdl, job)
File "/opt/odoo_addons/shop_connect/connector/controllers/main.py", line 66, in _try_perform_job
job.perform(session)
File "/opt/odoo_addons/shop_connect/connector/queue/job.py", line 493, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 352, in export_record
return exporter.run(binding_id, fields=fields, **kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 52, in run
result = self._run(*args, **kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 292, in _run
map_record = self._map_data()
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 221, in _map_data
return self.mapper.map_record(self.binding)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 322, in mapper
TranslationPrestashopExportMapper)
File "/opt/odoo_addons/shop_connect/connector/connector.py", line 312, in get_connector_unit
self.model_name)(self)
File "/opt/odoo_addons/shop_connect/connector/backend.py", line 274, in get_class
(base_class, session, model_name, matching_classes))
AssertionError: Several classes found for <class 'openerp.addons.connector_prestashop.unit.mapper.TranslationPrestashopExportMapper'> with session <Session db_name: hk, uid: 1, context: {'job_uuid': u'65b7e007-c55a-429b-bf9b-6ca5ca2f004d'}>, model name: prestashop.product.template. Found: set([<class 'openerp.addons.connector_prestashop_catalog_manager.models.product_template.exporter.ProductTemplateExportMapper'>, <class 'openerp.addons.connector_prestashop_manufacturer.models.product_template.exporter.ProductTemplateExportMapper'>])

Second thing I found, the Product Images dont get Imported or Exported from an to Odoo.

The following of the descibed Functions don't Work:
Create/modify attributtes and values in Odoo and push then in PrestaShop.
Create/modify products and push them in PrestaShop.
Create/modify products variants and push them in PrestaShop (combinations).
Create/modify category and push them in PrestaShop.
Create/modify image and push then in PrestaShop.

Thanks for all the Help.

Odoo Server Error PrestaShopWebServiceError: 'HTTP XML response is not parsable

hi,
i've just installed odoo connector, it connect to my prestashop but when i click on synchronize metadata it give me this:

i'm on ubuntu on localhost can anyone help me please

Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 323, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 316, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 966, in call
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 887, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/connector_prestashop/models/prestashop_backend/common.py", line 146, in synchronize_metadata
import_batch(session, model, backend.id)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 507, in import_batch
return importer.run(filters=filters, **kwargs)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 305, in run
record_ids = self._run_page(filters, **kwargs)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 313, in _run_page
record_ids = self.backend_adapter.search(filters)
File "/opt/odoo/addons/connector_prestashop/unit/backend_adapter.py", line 174, in search
return self.client.search(self._prestashop_model, filters)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 521, in search
PrestaShopWebServiceDict, self).search(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 350, in search
return self.get(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 367, in get
return self.get_with_url(full_url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 540, in get_with_url
response = super(PrestaShopWebServiceDict, self).get_with_url(url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 375, in get_with_url
return self._parse(self._execute(url, 'GET').content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 616, in _parse
parsed_content = super(PrestaShopWebServiceDict, self)._parse(content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 244, in _parse
(e, content[:512])
PrestaShopWebServiceError: 'HTTP XML response is not parsable : not well-formed (invalid token): line 48, column 105. \n\n\n\n \n \n \n \n \n\n <link type="text/css" rel="stylesheet" href="http://d2vdd8rzfx5'

Odoo Server Error

Hello
I'm trying to install the module but I have this error, I don't know what it means

Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/openerp/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/openerp/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/openerp/http.py", line 323, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/openerp/http.py", line 316, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/openerp/http.py", line 966, in call
return self.method(*args, **kw)
File "/odoo/odoo-server/openerp/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/odoo/odoo-server/addons/web/controllers/main.py", line 887, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/odoo/odoo-server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/odoo/odoo-server/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/odoo/odoo-server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/odoo/odoo-server/openerp/addons/base/module/module.py", line 534, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/odoo/odoo-server/openerp/modules/registry.py", line 386, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/odoo/odoo-server/openerp/modules/loading.py", line 340, in load_modules
loaded_modules, update_module)
File "/odoo/odoo-server/openerp/modules/loading.py", line 239, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/odoo/odoo-server/openerp/modules/loading.py", line 132, in load_module_graph
models = registry.load(cr, package)
File "/odoo/odoo-server/openerp/modules/registry.py", line 169, in load
model = cls._build_model(self, cr)
File "/odoo/odoo-server/openerp/models.py", line 591, in _build_model
original_module = pool[name]._original_module if name in parents else cls._module
File "/odoo/odoo-server/openerp/modules/registry.py", line 84, in getitem
return self.models[model_name]
KeyError: 'base_multi_image.image'

PrestashopImporter._validate_data called twice on each import

I think that the method _validate_data might be called twice on each import. We have there:

        self._validate_data(record)

        if binding:
            self._update(binding, record)
        else:
             binding = self._create(record)

But both methods called after _validate data have a call to _validate_data at the start of the method:

    def _create(self, data):
        """ Create the OpenERP record """
        # special check on data before import
        self._validate_data(data)
        ....

and

    def _update(self, binding, data):
        """ Update an OpenERP record """
        # special check on data before import
        self._validate_data(data)
        ....

given that it is called record-basis, the total overhead can be significant. Although it might be that nobody uses it. :-)

Tutorial to install „connector”

Developers and advanced users, please all, do a small tutorial with steps, how to..., where to... about „Prestashop OpenERP Connector”. Or, if somebody knows, where to found steps please let a link.
What i found on github and google search is not clear for newbies. I now to work with Debian command, but i hope to see a more explicit tutorial for this connector.
With best wishes and congratulations for your work, we start together in 2015!

export ERROR openerp.http: Exception during JSON

hi,

I know that I should study more, but since I managed to run almost all the import,
I would have a mistake when I export a product to prestashop.
I installed connector_prestashop_catalog_manager without error but if I export a product created in odoo in the log file appear this error and obviously the file does not appear in prestashop, is it possible to know if it depends on some connector installation error?
ERROR Stanem openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 323, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 316, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 966, in call
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/bus/controllers/main.py", line 34, in poll
raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2017-08-25 16:42:57,339 2100 INFO Stanem werkzeug: 127.0.0.1 - 17 16:42:57] "POST /longpolling/poll HTTP/1.1" 200 -

grazie

odoo server error PrestaShopWebServiceError: 'HTTP XML response is not parsable : not well-formed (invalid token)

hi, i've just installed connector, it give me Connection successful but when i Synchronize Metadata or base data it give me this error can anyone help me please?

Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 323, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 316, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 966, in call
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 887, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/connector_prestashop/models/prestashop_backend/common.py", line 146, in synchronize_metadata
import_batch(session, model, backend.id)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 507, in import_batch
return importer.run(filters=filters, **kwargs)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 305, in run
record_ids = self._run_page(filters, **kwargs)
File "/opt/odoo/addons/connector_prestashop/unit/importer.py", line 313, in _run_page
record_ids = self.backend_adapter.search(filters)
File "/opt/odoo/addons/connector_prestashop/unit/backend_adapter.py", line 174, in search
return self.client.search(self._prestashop_model, filters)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 521, in search
PrestaShopWebServiceDict, self).search(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 350, in search
return self.get(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 367, in get
return self.get_with_url(full_url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 540, in get_with_url
response = super(PrestaShopWebServiceDict, self).get_with_url(url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 375, in get_with_url
return self._parse(self._execute(url, 'GET').content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 616, in _parse
parsed_content = super(PrestaShopWebServiceDict, self)._parse(content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 244, in _parse
(e, content[:512])
PrestaShopWebServiceError: 'HTTP XML response is not parsable : not well-formed (invalid token): line 48, column 105. \n\n\n\n \n \n \n \n \n\n <link type="text/css" rel="stylesheet" href="http://d2vdd8rzfx5'

On hand quantity not transfered

Hello,

Is there a particular configuration on Odoo side or Prestashop to synch the product quantities from odoo to prestashop ?
The job starts and completes with no error but all quantities remains at 0 in Prestashop.

Thanks,

account_payment_mode encoding error while importing

hello,

@guewen I tested the PR #24, but I had a problem. I suppose that the character "è" is the origin of this problem.

I installed your prestapy.

  File "/home/imerir11/DEV/LibOdoo/gitGuewen_connector-prestashop/connector_prestashop/models/account_payment_mode/importer.py", line 27, in _import_record
    if self.binder_for().to_openerp(record['payment']):
  File "/home/imerir11/DEV/LibOdoo/gitGuewen_connector-prestashop/connector_prestashop/models/account_payment_mode/common.py", line 37, in to_openerp
    [(self._external_field, '=', str(external_id)),
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 2: ordinal not in range(128)

Transport product comes with 0 quantity

How to reproduce

  • create an order in prestashop; this order must include a shipping fee
  • synch the orders

=> in Odoo, the newly created sale_order contains the correct number of lines including the shipping product.
BUT the quantity for the shipment is set to 0 which leads to a wrong sale_order price.

html2text

Receiving this error when installing in Odoo 9.

Unable to install module "connector_prestashop" because an external dependency is not met: No module named html2text

The only place I see html2text is in the mail module

odooconnector

Export quantity job test fails randomly

Just tracking down an error that we are experiencing since a long time now...
Sometimes it passes, sometimes not.
All the PRs pending now are experiencing this.

image

No module named VCR

When installing on odoo 9 i get 'No module named vcr'
with pip freeze :
...
vcr==0.0.9
vcrpy==1.11.1
...
Using python 2.7
What's the issue ?
Thanks

Export product record on PrestaShop

Hi, i'm sorry about this, but i'have problem when export product.
Your module is ok when i want to synchronize prestashop > odoo but in other odoo > prestashop it's not ok on product.
Perhaps i have missed configuration.

Traceback (most recent call last):
File "/odoo/custom/addons/connector/controllers/main.py", line 90, in runjob
self._try_perform_job(session_hdl, job)
File "/odoo/custom/addons/connector/controllers/main.py", line 66, in _try_perform_job
job.perform(session)
File "/odoo/custom/addons/connector/queue/job.py", line 493, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/odoo/custom/addons/connector_prestashop/unit/exporter.py", line 352, in export_record
return exporter.run(binding_id, fields=fields, **kwargs)
File "/odoo/custom/addons/connector_prestashop/unit/exporter.py", line 52, in run
result = self._run(*args, **kwargs)
File "/odoo/custom/addons/connector_prestashop/unit/exporter.py", line 292, in _run
map_record = self._map_data()
File "/odoo/custom/addons/connector_prestashop/unit/exporter.py", line 221, in _map_data
return self.mapper.map_record(self.binding)
File "/odoo/custom/addons/connector_prestashop/unit/exporter.py", line 322, in mapper
TranslationPrestashopExportMapper)
File "/odoo/custom/addons/connector/connector.py", line 312, in get_connector_unit
self.model_name)(self)
File "/odoo/custom/addons/connector/backend.py", line 274, in get_class
(base_class, session, model_name, matching_classes))
AssertionError: Several classes found for <class 'openerp.addons.connector_prestashop.unit.mapper.TranslationPrestashopExportMapper'> with session <Session db_name: db_prod, uid: 7, context: {'job_uuid': u'0e6fd3d8-d852-444a-8d11-ce8270249d05'}>, model name: prestashop.product.template. Found: set([<class 'openerp.addons.connector_prestashop_catalog_manager.models.product_template.exporter.ProductTemplateExportMapper'>, <class 'openerp.addons.connector_prestashop_catalog_manager.models.product_template.exporter.ManufacturerExportMapper'>])

[FEAT]Versions keys improvements with component structure

Hi @bguillot , @pedrobaeza ,

I'm frequently struggling with different version of prestashop so that the version keys have to be redefined with code.
I propose to store the version keys in an Odoo model and allow users to set their own keys. This way, no more code will be needed for this kind of configuration. Of course we gonna make some adjustments so that deletion won't be possible etc...
The new component structure allow such easy configurations.

What's your point of view for that ?

regards

Error Product Export from Odoo 9 to Prestashop 1.6

Error:
Export a record on PrestaShop
UUID
65b7e007-c55a-429b-bf9b-6ca5ca2f004d
Aufgabe
openerp.addons.connector_prestashop.unit.exporter.export_record('prestashop.product.template', 1, {u'list_price': 1299})
Job-Funktion
openerp.addons.connector_prestashop.unit.exporter.export_record
Kanal
root.prestashop
Priorität
20
Ausführen nur nach

Benutzer-ID
Administrator

Anlagedatum
26.12.2017 23:07:57
Einreihungszeitpunkt
26.12.2017 23:07:58
Start Datum
26.12.2017 23:07:58
Erledigt am

Aktueller Versuch / Maximale Versuche 1 / 5 If the max. retries is 0, the number of retries is infinite.
Ausnahme Information
Traceback (most recent call last):
File "/opt/odoo_addons/shop_connect/connector/controllers/main.py", line 90, in runjob
self._try_perform_job(session_hdl, job)
File "/opt/odoo_addons/shop_connect/connector/controllers/main.py", line 66, in _try_perform_job
job.perform(session)
File "/opt/odoo_addons/shop_connect/connector/queue/job.py", line 493, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 352, in export_record
return exporter.run(binding_id, fields=fields, **kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 52, in run
result = self._run(*args, **kwargs)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 292, in _run
map_record = self._map_data()
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 221, in _map_data
return self.mapper.map_record(self.binding)
File "/opt/odoo_addons/shop_connect/connector_prestashop/unit/exporter.py", line 322, in mapper
TranslationPrestashopExportMapper)
File "/opt/odoo_addons/shop_connect/connector/connector.py", line 312, in get_connector_unit
self.model_name)(self)
File "/opt/odoo_addons/shop_connect/connector/backend.py", line 274, in get_class
(base_class, session, model_name, matching_classes))
AssertionError: Several classes found for <class 'openerp.addons.connector_prestashop.unit.mapper.TranslationPrestashopExportMapper'> with session <Session db_name: hk, uid: 1, context: {'job_uuid': u'65b7e007-c55a-429b-bf9b-6ca5ca2f004d'}>, model name: prestashop.product.template. Found: set([<class 'openerp.addons.connector_prestashop_catalog_manager.models.product_template.exporter.ProductTemplateExportMapper'>, <class 'openerp.addons.connector_prestashop_manufacturer.models.product_template.exporter.ProductTemplateExportMapper'>])

Second thing I found, the Product Images dont get Imported or Exported from an to Odoo.

The following of the descibed Functions don't Work:
Create/modify attributtes and values in Odoo and push then in PrestaShop.
Create/modify products and push them in PrestaShop.
Create/modify products variants and push them in PrestaShop (combinations).
Create/modify category and push them in PrestaShop.
Create/modify image and push then in PrestaShop.

This Issue schould only be closed if the Code Bug ist updated!

Pedro dont close cases if they havent been fixed yet.

To all new Users, this Bug is Real and will stop you from Working with this Connector properly. Everyone should open an Issue!

Problem with data export

Hello,

i hope this is the right place.. I try to use v7 and I get this when trying to export. I noticed that the same code is ported up to v10. Am I missing something?

Thank you
Bogdan

Traceback (most recent call last):
File "/opt/openerp/7.0/extra-addons/connector/queue/worker.py", line 123, in run_job
job.perform(session)
File "/opt/openerp/7.0/extra-addons/connector/queue/job.py", line 537, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/export_synchronizer.py", line 205, in export_record
return exporter.run(binding_id, fields=fields)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/export_synchronizer.py", line 79, in run
result = self._run(*args, **kwargs)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/export_synchronizer.py", line 145, in _run
self._map_data(fields=fields)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/export_synchronizer.py", line 175, in _map_data
self.mapper.convert(self.get_record_by_lang(), fields=fields)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/mapper.py", line 735, in convert
self._convert(records_by_language[first_key], fields=fields)
AttributeError: 'ProductExportMapper' object has no attribute '_convert'

error instalation debian 8+oddo 9+ PrestaShop-Odoo connector

install debian 8 with latest update
install oddo 9 - http://nightly.odoo.com/9.0/nightly/deb -english version
copy this https://www.odoo.com/apps/modules/9.0/connector_prestashop/ in adon directory
enable developer mode , then restart odoo service
install odoo connector -this is fine
error when i install odoo prestashop connector

this error i have to with ubuntu 16 +odoo 9 debian + connector_prestashop
Odoo Server Error

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 648, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 321, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 964, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 887, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 534, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 386, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 340, in load_modules
loaded_modules, update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 239, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 132, in load_module_graph
models = registry.load(cr, package)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 169, in load
model = cls._build_model(self, cr)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 591, in _build_model
original_module = pool[name]._original_module if name in parents else cls._module
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 84, in getitem
return self.models[model_name]
KeyError: 'base_multi_image.image'

includes dependence packages is installed fine:
Included Dependencies
• Product - Many Categories
• Connector for E-Commerce
• Product Multi Images
• Account Payment Mode
• Account Payment Partner
• Account Payment Sale
• Connector Base Product
• Product supplier info per variant
• Sale Automatic Workflow - Payment Mode
• Sale Exception
• Connector
• Sale Automatic Workflow

[9.0] Catalog manager: link image to URL after export

Hi,

I have seen that, after the export of an image, its storage is changed to its URL in Prestashop.

I think that the purpose of catalog manager is to manage products from Odoo and images should be kept there, in Odoo.

We could add a setting in the backend to choose this behavior. What do you think?

Regards.

Adding connector prestashop to Odoo v9

Hi,

I'm integrated Odoo connector prestashop in my Odoo 9 OCB version.
The connector is installed. But when i want to make a sale on odoo, i get a lot of errors like these bellow

I installed the connector based on the configuration of guewen : https://github.com/guewen/odoo-prestashop-dev

screen shot 05-17-17 at 08 22 am

this error comes repeatedly when i start my odoo with the connector.

screen shot 05-16-17 at 05 07 pm
screen shot 05-16-17 at 12 26 pm
screen shot 05-16-17 at 04 14 pm

screen shot 05-17-17 at 08 31 am

Could someone plz be of any help about these errors ? Or already encounter errors like that ?

Thx in advance !
Best Regards !
Razgort

Reduce number of connections for http requests on PrestaShop

A simple import of a product issues a huge number of http requests to retrieve all the necessary data.
We could probably reduce the number of requests by grouping some reads (like reading options in one request). We should also use a requests.Session that is opened only once for the duration of an import/export. The session could be stored in the ConnectorEnvironment and propagated to prestapyt (https://github.com/prestapyt/prestapyt/blob/master/prestapyt/prestapyt.py#L70).

Anyone could install this module in Windows?

Hello,

I'm using Odoo 9 in Windows, i can upload modules (move on Addons folder).

But when i'm trying install modules, failed because dependencies ...

You try to install module 'prestashoperpconnect' that depends on module 'product_images'.
But the latter module is not available in your system.

Someone know? Thanks

Migrate Prestashop connector to v8

This issue is intended to collect all the information about the migration to v8 of the prestashop connector.

@pedrobaeza and I are starting to work on this migration already. If anyone more want to collaborate, please comment here.

Any tip or question that we should take into account?

@legalsylvain, I'm seeing that you have a 7.0 refactorization as a PR. Does it worth to use it as base?

prestashop version

Hi,
does this connector (v10 branch) work with prestashop 1.6, 1.7 or both ?

[7.0] jobs not executed due to wrong spelling of PS webservice ressource 'order_slip'

While executing jobs like:
openerp.addons.prestashoperpconnect.unit.import_synchronizer.import_refunds(1, None)
the following traceback is generated:

Traceback (most recent call last):
File "/opt/openerp/7.0/extra-addons/connector/queue/worker.py", line 123, in run_job
job.perform(session)
File "/opt/openerp/7.0/extra-addons/connector/queue/job.py", line 537, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/import_synchronizer.py", line 1123, in import_refunds
import_batch(session, 'prestashop.refund', backend_id, filters)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/import_synchronizer.py", line 1011, in import_batch
importer.run(filters=filters, **kwargs)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/import_synchronizer.py", line 183, in run
record_ids = self._run_page(filters, **kwargs)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/import_synchronizer.py", line 191, in _run_page
record_ids = self.backend_adapter.search(filters)
File "/opt/openerp/7.0/extra-addons/prestashoperpconnect/unit/backend_adapter.py", line 126, in search
return api.search(self._prestashop_model, filters)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 493, in search
search(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 321, in search
return self.get(resource, options=options)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 339, in get
return self.get_with_url(full_url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 512, in get_with_url
response = super(PrestaShopWebServiceDict, self).get_with_url(url)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 348, in get_with_url
return self._parse(self._execute(url, 'GET').content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 210, in _execute
self._check_status_code(response.status_code, response.content)
File "/usr/local/lib/python2.7/dist-packages/prestapyt/prestapyt.py", line 160, in _check_status_code
ps_error_code=ps_error_code,
PrestaShopWebServiceError: 'Resource of type "order_slips" does not exists. Did you mean: "order_slip"? The full list is: "addresses", "carriers", "cart_rules", "carts", "categories", "combinations", "configurations", "contacts", "content_management_system", "countries", "currencies", "customer_messages", "customer_threads", "customers", "customizations", "deliveries", "employees", "groups", "guests", "image_types", "images", "languages", "manufacturers", "order_carriers", "order_details", "order_discounts", "order_histories", "order_invoices", "order_payments", "order_slip", "order_states", "orders", "price_ranges", "product_customization_fields", "product_feature_values", "product_features", "product_option_values", "product_options", "product_suppliers", "products", "search", "shop_groups", "shop_urls", "shops", "specific_price_rules", "specific_prices", "states", "stock_availables", "stock_movement_reasons", "stock_movements", "stocks", "stores", "suppliers", "supply_order_details", "supply_order_histories", "supply_order_receipt_histories", "supply_order_states", "supply_orders", "tags", "tax_rule_groups", "tax_rules", "taxes", "translated_configurations", "warehouse_product_locations", "warehouses", "weight_ranges", "zones"'

the statement _prestashop_model = 'order_slips' should be _prestashop_model = 'order_slip', due to an incoherence in PS.

Odoo 9 installation problem

Hi, everyone.

I've followed all the steps found on odoo tutorials about how to install third party modules on odoo, but I haven't been able to see this addon on my app list.. Does this connector work with odoo 9?.

Thanks a lot for your answer.

[8.0]What should be the replacement of _init_child_mapper in mapper?

Hi,

I've searched in the repo for a definition of _init_child_mapper which appears in the mapper.
I don't really find out what could be the replacement of this method as I can't find any definition, neither on the prestahop repo nor on the connector one.
Any advice would be appreciated

[Question][7.0] Why is payment automation not available?

I am using Prestashop-connector to import sales order with rule as PAID. With the help of automatic_workflow module, invoice is validated for the corresponding Sales order but the payment is NOT PAID.

So, why is this process not DONE? Is there any special case.

For now, I have tried to use "sale_quick_payment" module and used the pay_sale_order(..) method to create the payment at Sales order. But I need to know whether I can do this?

Job Runner

Hello all,

This is a great connector but I'm having trouble with the jobs. I've tried changing the dates for importing as well as leaving them blank.

The metadata import went fine as did the base but I'm not getting any of the orders or customers imported. When checking the connection, it is successful. I read through the Job Runner documentation and saw this tip "Alternatively, if you are not able to activate it, you can enable the scheduled job called "Enqueue Jobs" - I don't see this as an option in the connector. I'm sure I'm missing something simple.

No errors in the Odoo log.

Any assistance is greatly appreciated.

Thanks!

Impossible instalation

Hi,

I am trying to install the connector-prestashop and it is imposible.

If I copy al files in adding directory, when I update all my app in odoo, it doesn´t detect modules.

I have followed all steps and I can´t find the solution.

I have used the setup.py and I have some errors, using the command "python setup.py install" like followings:
captura de pantalla 2017-04-19 a las 17 28 47

I have odoo 10 and python 2.7.
pip 9.1
setup tools-odoo
setup tools 35.0

anyone can help?

Connector installation issue Google Drive

Here is the traceback - it's taking issue with a Google Drive record when installing.

Odoo Server Error
Traceback (most recent call last):
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 319, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 312, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 962, in call
return self.method(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 512, in response_wrap
response = f(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/web/controllers/main.py", line 901, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/web/controllers/main.py", line 889, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/modules/registry.py", line 386, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/modules/loading.py", line 338, in load_modules
loaded_modules, update_module)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/modules/loading.py", line 98, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/tools/convert.py", line 851, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/tools/convert.py", line 938, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/tools/convert.py", line 801, in parse
self.parse(rec, mode)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/tools/convert.py", line 804, in parse
self._tags[rec.tag](self.cr, rec, de, mode=mode)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/tools/convert.py", line 708, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 1143, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 354, in old_api
result = method(recs, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/connector/producer.py", line 48, in create
record_id = create_original(self, vals)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/models.py", line 4151, in create
record = self.browse(self._create(old_vals))
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 490, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/models.py", line 4289, in _create
tuple([u[2] for u in updates if len(u) > 2])
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/sql_db.py", line 141, in wrapper
return f(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/sql_db.py", line 220, in execute
res = self._obj.execute(query, params)
ParseError: "duplicate key value violates unique constraint "ir_config_parameter_key_uniq"
DETAIL: Key (key)=(google_drive_client_id) already exists.
" while parsing /opt/bitnami/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/google_drive/google_drive_data.xml:5, near

google_drive_client_id
598905559630.apps.googleusercontent.com

I appreciate your efforts. this looks like a great connector!

job not start odoo not import from prestashop

i've installed odoo connector, i've imported tax and nothing.
There is a list of jobs but they do not leave
i'm in localhost, i'have to test all for install on-line
can anyone help me please?

Migration to version 8.0/9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate to 8.0

  • prestashoperpconnect > connector_prestashop - By @pedrobaeza - #22
  • prestashoperpconnect_catalog_manager > connector_prestashop_catalog_manager - By @pedrobaeza - #23
  • prestashoperpconnect_customize_example > connector_prestashop_customize_example - By @pedrobaeza - #22

Migration to 9.0

Things to do:

  • make the module installable
  • use the new layout for python files
  • replace / do not let pop out NothingToDoJobError which is a risky exception (cancels the whole job if raised in a dependency import)
  • rename models such xxxExportSynchronizer to xxxExporter to follow the new connector naming
  • initialize a prestapyt client only once, not on every call
  • migrate to account.payment.mode
  • replace the binder by the core binder (using recordset instead of integer ids)

Remaining items moved to the pull request #24

  • connector_prestashop - #24
  • connector_prestashop_catalog_manager - #24
  • connector_prestashop_customize_example - #24

Bug while exporting products from Odoo

Using the module connector_prestashop_catalog_manager, when exporting products, most of the product_product and product_variant are transferred.

Over a total of 1500 products, 12 have not been transferred; the job is showing the following error:

Task
openerp.addons.connector_prestashop.unit.exporter.export_record('prestashop.product.template', 2, {'list_price': 12.55})
Job Function
openerp.addons.connector_prestashop.unit.exporter.export_record
Channel
root.prestashop

Traceback (most recent call last):
File "/home/odoo8dev/git/connector/connector/controllers/main.py", line 90, in runjob
self._try_perform_job(session_hdl, job)
File "/home/odoo8dev/git/connector/connector/controllers/main.py", line 66, in _try_perform_job
job.perform(session)
File "/home/odoo8dev/git/connector/connector/queue/job.py", line 512, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/home/odoo8dev/git/connector-prestashop/connector_prestashop/unit/exporter.py", line 198, in export_record
return exporter.run(binding_id, fields=fields)
File "/home/odoo8dev/git/connector-prestashop/connector_prestashop/unit/exporter.py", line 48, in run
result = self._run(*args, **kwargs)
File "/home/odoo8dev/git/connector-prestashop/connector_prestashop/unit/exporter.py", line 126, in _run
self._update(record)
File "/home/odoo8dev/git/connector-prestashop/connector_prestashop_catalog_manager/product.py", line 138, in _update
self.backend_adapter.write(self.prestashop_id, data)
File "/home/odoo8dev/git/connector-prestashop/connector_prestashop/unit/backend_adapter.py", line 185, in write
self._prestashop_model, {self._export_node_name: attributes})
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 385, in edit
return self.edit_with_url(full_url, content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 579, in edit_with_url
return _super.edit_with_url(url, xml_content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 396, in edit_with_url
response = self._execute(url, 'PUT', data=content, add_headers=headers)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 210, in _execute
self._check_status_code(response.status_code, response.content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 155, in _check_status_code
ps_error_code, ps_error_msg = self._parse_error(content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 122, in _parse_error
error_answer = self._parse(xml_content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 588, in _parse
parsed_content = super(PrestaShopWebServiceDict, self)._parse(content)
File "/home/odoo8dev/git/client/tools/eggs/prestapyt-0.7.0-py2.7.egg/prestapyt/prestapyt.py", line 234, in _parse
(e, content[:512])
PrestaShopWebServiceError: 'HTTP XML response is not parsable : undefined entity: line 57, column 26. \n\n\n\n\n\n\t \n\t\n\t\t\n\t\t<title>Erreur 404 - mysite </title>\n\t\t\t\t\t<meta name="description" content="Impossible de trouver la page"'

data import with "since" information locks into an unfinished state with error

Hi there,
I try to use the v7 connector.
While the first import works correctly (the product attributes do not come, though) a second one, once the field xxx-since is filled with a date, blocks the whole process.

e.g.: Prepare the import of orders modified on Prestashop ,
task openerp.addons.prestashoperpconnect.unit.import_synchronizer.import_orders_since(1, datetime.datetime(2017, 3, 30, 1, 45, 20, tzinfo=<DstTzInfo 'Europe/Zurich' CEST+2:00:00 DST>))

produces after a short moment, while remaining in the "waiting" state, the following traceback if I want to queue it or terminate.

Server Traceback (most recent call last):
File "/opt/openerp/7.0/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/bstanciu/workspace/odoo-7.0/openerp/netsvc.py", line 306, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/bstanciu/workspace/odoo-7.0/openerp/service/web_services.py", line 632, in dispatch
res = fn(db, uid, *params)
File "/home/bstanciu/workspace/odoo-7.0/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/bstanciu/workspace/odoo-7.0/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/bstanciu/workspace/odoo-7.0/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/bstanciu/workspace/odoo-7.0/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/7.0/extra-addons/connector/queue/model.py", line 180, in button_done
result=result, context=context)
File "/opt/openerp/7.0/extra-addons/connector/queue/model.py", line 167, in _change_job_state
job = storage.load(job.uuid)
File "/opt/openerp/7.0/extra-addons/connector/queue/job.py", line 292, in load
func = _unpickle(stored.func)
File "/opt/openerp/7.0/extra-addons/connector/queue/job.py", line 115, in _unpickle
raise NotReadableJobError('Could not unpickle.', pickled)
NotReadableJobError: ('Could not unpickle.', "(S'openerp.addons.prestashoperpconnect.unit.import_synchronizer.import_orders_since'\np1\n(I1\ncdatetime\ndatetime\np2\n(S'\x07\xe1\x03\x1e\x01-\x14\x00\x00\x00'\ncpytz\n_p\np3\n(S'Europe/Zurich'\np4\nI7200\nI3600\nS'CEST'\np5\ntRp6\ntRp7\ntp8\n(dp9\nt.")

thank you for any insight, I cannot get it going..
B

Recurring customers creates duplicates

How to reporduce

  • in prestashop, create a reccuring customer
  • make sales for this customers
  • synch the sale orders
    => odoo will receive the correct number of sales orders, but one new res_partner per sale_order.

Does the connector manages that ?

AutoMatchingImporter._compare_function missing self

The definition should be this one:

python def _compare_function(self, ps_val, erp_val, ps_dict, erp_dict)

maybe is not noted because the overwrites to the method always add the self. And the base implementation raise a non implemented exception anyway.

Who is using this connector

Hello,

We really want to use Odoo with Prestashop.
How robust is the connector ? Is there production environments using it ?
Could we have some references ?

Thanks a lot,
Marc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.