Hello. I'm getting an error after trying to confirm payment at Accounting / Customers / Payments.
I've been tracing for hours but I didn't' get .
Any clue? Thanks in advance.
Odoo Server Error
Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise raise value File "/home/odoo/src/odoo/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/home/odoo/src/odoo/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1326, in call_button action = self._call_kw(model, method, args, kwargs) File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1314, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/home/odoo/src/odoo/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/home/odoo/src/odoo/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "/home/odoo/src/user/l10n_pe_account_invoicing/models/account_payment.py", line 48, in post return super(AccountPayment, self).post() File "/home/odoo/src/odoo/addons/payment/models/account_payment.py", line 99, in post res = super(AccountPayment, self - payments_need_trans).post() File "/home/odoo/src/odoo/addons/account_check_printing/models/account_payment.py", line 54, in post res = super(AccountPayment, self).post() File "/home/odoo/src/odoo/addons/account/models/account_payment.py", line 689, in post moves.filtered(lambda move: move.journal_id.post_at != 'bank_rec').post() File "/home/odoo/src/enterprise/account_asset/models/account_move.py", line 36, in post res = super(AccountMove, self).post() File "/home/odoo/src/enterprise/account_reports/models/account_activity.py", line 80, in post return super(AccountMove, self).post() File "/home/odoo/src/odoo/addons/stock_account/models/account_move.py", line 39, in post res = super(AccountMove, self).post() File "/home/odoo/src/enterprise/account_invoice_extract/models/account_invoice.py", line 281, in post res = super(AccountMove, self).post() File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2214, in post move.write(to_write) File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1687, in write res = super(AccountMove, self.with_context(check_move_validity=False)).write(vals) File "/home/odoo/src/odoo/addons/mail/models/mail_thread.py", line 322, in write result = super(MailThread, self).write(values) File "/home/odoo/src/odoo/addons/mail/models/mail_activity.py", line 719, in write return super(MailActivityMixin, self).write(vals) File "/home/odoo/src/odoo/odoo/models.py", line 3546, in write field.write(self, vals[fname]) File "/home/odoo/src/odoo/odoo/fields.py", line 949, in write cache_value = self.convert_to_cache(value, records) File "/home/odoo/src/odoo/odoo/fields.py", line 2242, in convert_to_cache raise ValueError("Wrong value for %s: %r" % (self, value)) ValueError: Wrong value for account.move.state: 'posted'