Buongiorno, ho aggiornato i moduli alle ultime versioni, ma ho il seguente errore e non capisco quale modulo sia coinvolto e come posso risolverlo.
Questo è il log dell'errore:
Errore:
Server Error
Traceback (most recent call last):
File "myServer\server\odoo\models.py", line 4741, in ensure_one
_id, = self._ids
ValueError: too many values to unpack (expected 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "myServer\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "myServer\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "myServer\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "myServer\server\odoo\http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "myServer\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "myServer\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "myServer\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "myServer\server\odoo\http.py", line 941, in __call__
return self.method(*args, **kw)
File "myServer\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "myServer\server\odoo\addons\web\controllers\main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "myServer\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "myServer\server\odoo\api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "myServer\server\odoo\api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "myServer\server\odoo\addons\sale\wizard\sale_make_invoice_advance.py", line 136, in create_invoices
sale_orders.action_invoice_create()
File "myServer\server\odoo\addons\l10n_it_account_stamp_sale\models\sale_order.py", line 14, in action_invoice_create
grouped=grouped, final=final)
File "myServer\server\odoo\addons\sale\models\sale.py", line 614, in action_invoice_create
self.env['account.invoice.line'].create(line_vals_list)
File "<decorator-gen-390>", line 2, in create
File "myServer\server\odoo\api.py", line 443, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "myServer\server\odoo\api.py", line 443, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "myServer\server\odoo\addons\sale_timesheet\models\account_invoice.py", line 66, in create
'timesheet_invoice_id': invoice_line.invoice_id.id,
File "myServer\server\odoo\addons\sale_timesheet\models\account.py", line 61, in write
result = super(AccountAnalyticLine, self).write(values)
File "myServer\server\odoo\addons\sale\models\analytic.py", line 28, in write
result = super(AccountAnalyticLine, self).write(values)
File "myServer\server\odoo\addons\maintenance_timesheet\models\hr_timesheet.py", line 28, in write
current_request = self.maintenance_request_id
File "myServer\server\odoo\fields.py", line 1003, in __get__
record.ensure_one()
File "myServer\server\odoo\models.py", line 4744, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.analytic.line(161, 160, 159, 158, 157, 153, 146, 141, 140, 139, 130, 129, 128, 127, 126, 120, 119, 118, 117, 116, 103, 102, 101, 100, 93, 92, 91, 90, 89, 84, 82, 79, 80, 78, 74, 73, 72, 71, 70, 69, 68, 67)
Avete suggerimenti da darmi?
Grazie,
Simone