ctmil / meli_oerp

Modulo para sincronizar MercadoLibre con Odoo
https://www.moldeointeractive.com.ar/p/mercadolibre-odoo
GNU Affero General Public License v3.0
47 stars 86 forks source link

[12.0] server error al entrar a una venta generada por el módulo. #70

Closed FedericoLaTorre closed 3 years ago

FedericoLaTorre commented 3 years ago

Error: Odoo Server Error

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/api.py", line 1049, in get value = self._data[key][field][record._ids[0]] KeyError: 4471

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1065, in get value = record.env.cache.get(record, self) File "/usr/lib/python3/dist-packages/odoo/api.py", line 1051, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('sale.order(4471,).meli_status_brief', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch result = self._call_function(self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, *kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 98, in wrapper return f(dbname, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in call return self.method(*args, *kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap response = f(args, kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 963, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 955, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/models.py", line 2835, in read vals[name] = convert(record[name], record, use_name_get) File "/usr/lib/python3/dist-packages/odoo/models.py", line 5167, in getitem return self._fields[key].get(self, type(self)) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1069, in get self.determine_value(record) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1182, in determine_value self.compute_value(recs) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1136, in compute_value self._compute_value(records) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1127, in _compute_value getattr(records, self.compute)() File "/opt/odoo/meli_oerp/models/orders.py", line 66, in _meli_status_brief morder.update_order_status() File "/opt/odoo/meli_oerp/models/orders.py", line 1271, in update_order_status order.sale_order.confirm_ml(meli=meli,config=config) TypeError: confirm_ml() got an unexpected keyword argument 'meli'

fabriciocosta commented 3 years ago

Corregido en la versión del commit: https://github.com/ctmil/meli_oerp/commit/3c244f11ecf34b858799f9f59dfd696e68aeb5bd Ojo Federico que si tenes el modulo de meli_oerp_accounting, tiene que estar actualizado a su vez a la version 12.0.21.6 !