Coder Social home page Coder Social logo

Comments (14)

pedrobaeza avatar pedrobaeza commented on June 11, 2024

Next time, please pass only text with the trace, not screens.

Any clue, @simahawk or @sergio-teruel ?

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

Ho, sry i'll do that next time but i screened when i was debugging yesterday ><

from connector-prestashop.

sergio-teruel avatar sergio-teruel commented on June 11, 2024

@pedrobaeza @Razgort Mhhuuuu I'm watching errors not relative to connector module...
First fix this errors and then try again.
You must use 9.0 branch not dev branchs..
Are you sure that all necessary branches are in 9.0?? p.g. e-commerce??

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

OK, then it's unrelated to connector itself.

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

I'm using 9.0 branch actually ...
i cloned this repository https://github.com/OCA/OCB.git with -b 9.0
and for the connector, i'm using this

[submodule "odoo/external-src/connector-prestashop"]
path = odoo/external-src/connector-prestashop
url = [email protected]:guewen/connector-prestashop.git
[submodule "odoo/external-src/connector-ecommerce"]
path = odoo/external-src/connector-ecommerce
url = [email protected]:OCA/connector-ecommerce.git
[submodule "odoo/external-src/connector"]
path = odoo/external-src/connector
url = [email protected]:OCA/connector.git
[submodule "odoo/external-src/bank-payment"]
path = odoo/external-src/bank-payment
url = [email protected]:OCA/bank-payment.git
[submodule "odoo/external-src/product-attribute"]
path = odoo/external-src/product-attribute
url = [email protected]:camptocamp/product-attribute.git
[submodule "odoo/external-src/sale-workflow"]
path = odoo/external-src/sale-workflow
url = [email protected]:OCA/sale-workflow.git
[submodule "odoo/external-src/product-variant"]
path = odoo/external-src/product-variant
url = [email protected]:camptocamp/product-variant.git
[submodule "odoo/external-src/server-tools"]
path = odoo/external-src/server-tools
url = [email protected]:OCA/server-tools.git

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

So i recloned all repository from OCA with branch 9.0 and here is my git module
[submodule "Modules-OCA/reporting-engine"]
path = Modules-OCA/reporting-engine
url = https://github.com/OCA/reporting-engine
[submodule "Modules-OCA/management-system"]
path = Modules-OCA/management-system
url = https://github.com/OCA/management-system
[submodule "Modules-OCA/knowledge"]
path = Modules-OCA/knowledge
url = https://github.com/OCA/knowledge
[submodule "Modules-OCA/account-fiscal-rule"]
path = Modules-OCA/account-fiscal-rule
url = https://github.com/OCA/account-fiscal-rule
[submodule "Modules-OCA/account-financial-tools"]
path = Modules-OCA/account-financial-tools
url = https://github.com/OCA/account-financial-tools
[submodule "Modules-OCA/account-financial-reporting"]
path = Modules-OCA/account-financial-reporting
url = https://github.com/OCA/account-financial-reporting
[submodule "Modules-Store/aeroo_reports"]
path = Modules-Store/aeroo_reports
url = https://github.com/ingadhoc/aeroo_reports.git
[submodule "Modules-Store/multi-store"]
path = Modules-Store/multi-store
url = https://github.com/ingadhoc/multi-store
[submodule "Modules-OCA/connector-presta-deps/server-tools"]
path = Modules-OCA/connector-presta-deps/server-tools
url = https://github.com/OCA/server-tools.git
[submodule "Modules-OCA/connector-presta-deps/sale-workflow"]
path = Modules-OCA/connector-presta-deps/sale-workflow
url = https://github.com/OCA/sale-workflow.git
[submodule "Modules-OCA/connector-presta-deps/product-variant"]
path = Modules-OCA/connector-presta-deps/product-variant
url = https://github.com/OCA/product-variant.git
[submodule "Modules-OCA/connector-presta-deps/product-attribute"]
path = Modules-OCA/connector-presta-deps/product-attribute
url = https://github.com/OCA/product-attribute.git
[submodule "Modules-OCA/connector-presta-deps/connector-prestashop"]
path = Modules-OCA/connector-presta-deps/connector-prestashop
url = https://github.com/OCA/connector-prestashop.git
[submodule "Modules-OCA/connector-presta-deps/connector-ecommerce"]
path = Modules-OCA/connector-presta-deps/connector-ecommerce
url = https://github.com/OCA/connector-ecommerce.git
[submodule "Modules-OCA/connector-presta-deps/bank-payment"]
path = Modules-OCA/connector-presta-deps/bank-payment
url = https://github.com/OCA/bank-payment.git
[submodule "Modules-OCA/connector-presta-deps/connector"]
path = Modules-OCA/connector-presta-deps/connector
url = https://github.com/OCA/connector.git

from connector-prestashop.

simahawk avatar simahawk commented on June 11, 2024

@Razgort Sergio and Pedro are right: you must avoid collecting tons of error in one ticket, especially if they are not strictly related to the current repo or module. Plus, please, copy paste traceback from the shell, not with screenshots.

1st thing 1st: make sure you have latest version of everything. In this regard DO NOT rely on https://github.com/guewen/odoo-prestashop-dev which is now outdated as is just for personal and skilled dev usage and is not yet up to date with all the work that has been done.

And be careful w/ submodule: it can bite you as is not guaranteed that it switches to correct branch when you checkout.

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

Hi sima,
This mornign i repulled all repository for the prestashop connector on the last version of the 9.0 branch from OCA repository and i still have issues

My main issue is actually this one :
image

The error occurs each time i want to confirm a sale ....

from connector-prestashop.

simahawk avatar simahawk commented on June 11, 2024

we cannot determine anything from this: STOP posting images instead of full traceback.

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

Sry the traceback is as follow :

2017-05-17 12:52:44,193 2152 ERROR cop-empty openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "G:\OCB-9.0\openerp\http.py", line 648, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "G:\OCB-9.0\openerp\http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "G:\OCB-9.0\openerp\http.py", line 321, in _call_function
return checked_call(self.db, *args, **kwargs)
File "G:\OCB-9.0\openerp\service\model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "G:\OCB-9.0\openerp\http.py", line 314, in checked_call
result = self.endpoint(*a, **kw)
File "G:\OCB-9.0\openerp\http.py", line 964, in call
return self.method(*args, **kw)
File "G:\OCB-9.0\openerp\http.py", line 514, in response_wrap
response = f(*args, **kw)
File "G:\OCB-9.0\addons\web\controllers\main.py", line 900, in call_button
action = self._call_kw(model, method, args, {})
File "G:\OCB-9.0\addons\web\controllers\main.py", line 888, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "G:\OCB-9.0\openerp\api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "G:\OCB-9.0\openerp\api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "G:\OCB-9.0\addons\delivery\models\sale_order.py", line 35, in action_confirm
res = super(SaleOrder, self).action_confirm()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\Odoo-Source\Modules-OCA\connector-presta-deps\sale-workflow\sale_exception\models\sale.py", line 113, in action_confirm
return super(SaleOrder, self).action_confirm()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\OCB-9.0\addons\sale\sale.py", line 425, in action_confirm
order.order_line._action_procurement_create()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\OCB-9.0\addons\procurement_jit\sale.py", line 11, in _action_procurement_create
res = super(SaleOrderLine, self)._action_procurement_create()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\OCB-9.0\addons\sale\sale.py", line 601, in _action_procurement_create
new_procs.run()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\OCB-9.0\openerp\api.py", line 574, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
File "G:\OCB-9.0\addons\stock\procurement.py", line 334, in run
self.pool.get('stock.move').action_confirm(cr, uid, move_to_confirm_ids, context=context)
File "G:\OCB-9.0\openerp\api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "G:\OCB-9.0\openerp\api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "G:\OCB-9.0\addons\delivery\models\stock_move.py", line 34, in action_confirm
res = super(StockMove, self).action_confirm()
File "G:\OCB-9.0\openerp\api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "G:\OCB-9.0\openerp\api.py", line 574, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
File "G:\OCB-9.0\addons\stock\stock.py", line 2383, in action_confirm
self._picking_assign(cr, uid, move_ids, context=context)
File "G:\OCB-9.0\openerp\api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
TypeError: _picking_assign() takes at least 7 arguments (5 given)

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

Definitively nothing to do with the connector. Any module you have put overwrites the method _picking_assign, and raises when using the connector.

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

for me it's a dependency of the connector at this line

File "G:\Odoo-Source\Modules-OCA\connector-presta-deps\sale-workflow\sale_exception\models\sale.py", line 113, in action_confirm
return super(SaleOrder, self).action_confirm()

from connector-prestashop.

simahawk avatar simahawk commented on June 11, 2024

No, it has nothing to do w/ the connector. Judging from the error there's some module that is is not passing all the arguments to the old style api in _picking_assign call.

from connector-prestashop.

Razgort avatar Razgort commented on June 11, 2024

I think your are right but i'm stuck on this for the moment. I don't find from which one it comes =(

from connector-prestashop.

Related Issues (20)

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.