Closed ljacobo closed 5 months ago
Hola @ljacobo
Podrías complementar la descripción del issue con el Traceback completo del error?
Ping @ljacobo
Perdona, opté por la v12.
@jlopezg tratando nuevamente con Odoo v14 CE, acá el Traceback completo, por si puedes ayudarme:
Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch result = self._call_function(self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, *kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call result = self.endpoint(*a, kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in call return self.method(*args, *kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap response = f(args, kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1377, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1369, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 1048, in onchange return super(AccountMove, self.with_context(recursive_onchanges=False)).onchange(values, field_name, field_onchange) File "/usr/lib/python3/dist-packages/odoo/models.py", line 6228, in onchange record._onchange_eval(name, field_onchange[name], result) File "/usr/lib/python3/dist-packages/odoo/models.py", line 5984, in _onchange_eval method_res = method(self) File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 378, in _onchange_journal if self.state == 'draft' and self._get_last_sequence() and self.name and self.name != '/': File "/mnt/extra-addons/l10n_do_accounting/models/account_move.py", line 907, in _get_last_sequence relaxed=relaxed, lock=lock Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause TypeError: _get_last_sequence() got an unexpected keyword argument 'lock'
También pasa al recibir productos en orden de compras:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch
result = self._call_function(self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, *kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in call
return self.method(*args, *kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(args, kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/stock/wizard/stock_immediate_transfer.py", line 65, in process
return pickings_to_validate.with_context(skip_immediate=True).button_validate()
File "/usr/lib/python3/dist-packages/odoo/addons/stock/models/stock_picking.py", line 933, in button_validate
pickings_to_backorder.with_context(cancel_backorder=False)._action_done()
File "/usr/lib/python3/dist-packages/odoo/addons/sale_stock/models/stock.py", line 76, in _action_done
res = super()._action_done()
File "/usr/lib/python3/dist-packages/odoo/addons/stock/models/stock_picking.py", line 754, in _action_done
todo_moves._action_done(cancel_backorder=self.env.context.get('cancel_backorder'))
File "/usr/lib/python3/dist-packages/odoo/addons/stock_account/models/stock_move.py", line 268, in _action_done
svl.stock_move_id._account_entry_move(svl.quantity, svl.description, svl.id, svl.value)
File "/usr/lib/python3/dist-packages/odoo/addons/stock_account/models/stock_move.py", line 480, in _account_entry_move
self.with_company(company_to)._create_account_move_line(acc_src, acc_valuation, journal_id, qty, description, svl_id, cost)
File "/usr/lib/python3/dist-packages/odoo/addons/stock_account/models/stock_move.py", line 454, in _create_account_move_line
'move_type': 'entry',
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause TypeError: _get_last_sequence() got an unexpected keyword argument 'lock'
Hola @ljacobo Este error debe resolverse usando una versión actualizada de Odoo 14.
¿Puedes compartir por acá cuál es el último commit que tienes de Odoo en esa versión?
@jlopezg gracias. Tenía una imagen de Odoo 14 un poco out of date, actualicé la imagen y listo.
Por otro lado, puedo contactarte por otro canal persona, email o ws, para consultarte algo sobre tus servicios profesionales de Odoo?
Mil gracias.
Hola @ljacobo
Por supuesto. Mi correo es jlopez@indexa.do
Type: General
He configurado la parte de la localización en la version 14 de Odoo, pero al tratar de crear una factura de ventas, me da el error:
File "/mnt/extra-addons/l10n_do_accounting/models/account_move.py", line 905, in _get_last_sequence
Traté actualizando a la version que tiene el FIX, según leí en los issues reportados, pero tampoco funciona.
Tenemos alguna forma de resolver esto?
Gracias.
Exception
Describe the bug Odoo Version: [A clear and concise description of the bug]
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior [A clear and concise description of your expectation]
Additional context and screenshots [Add any other information such as screenshots, videos, messages]
Sample Code / Stack Trace
Configuration information Operating System: Python version: