Skip to Content
Menu
This question has been flagged
2 Replies
2164 Views

Hi

I am using Odoo 11 Community and until today everything was working also on this issue. Registering a payment for customers or vendors was always working. But today I suddenly started receiving an error message which I have no idea how to interprete. Perhaps someone can take a look at it and tell me what's going wrong and perhaps even know how to fix it.

The error message is as follows:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 647, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 307, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 689, in dispatch
    result = self._call_function(**self.params)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 339, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 332, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/http.py", line 512, in response_wrap
    response = f(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/web/controllers/main.py", line 934, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/web/controllers/main.py", line 922, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_payment.py", line 523, in action_validate_invoice_payment
    return self.post()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_payment.py", line 498, in post
    move = rec._create_payment_entry(amount)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_payment.py", line 592, in _create_payment_entry
    self.invoice_ids.register_payment(counterpart_aml)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_invoice.py", line 904, in register_payment
    return (line_to_reconcile + payment_line).reconcile(writeoff_acc_id, writeoff_journal_id)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_move.py", line 1020, in reconcile
    remaining_moves = self.auto_reconcile_lines()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_move.py", line 990, in auto_reconcile_lines
    return self.auto_reconcile_lines()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_move.py", line 986, in auto_reconcile_lines
    'currency_id': currency,
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_move.py", line 1819, in create
    res = super(AccountPartialReconcile, self).create(vals)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/models.py", line 3278, in create
    record = self.browse(self._create(old_vals))
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/models.py", line 3435, in _create
    self.recompute()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/models.py", line 4811, in recompute
    target._write(dict(vals))
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_invoice.py", line 479, in _write
    (reconciled & pre_reconciled).filtered(lambda invoice: invoice.state == 'open').action_invoice_paid()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/sale/models/account_invoice.py", line 45, in action_invoice_paid
    res = super(AccountInvoice, self).action_invoice_paid()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/account/models/account_invoice.py", line 787, in action_invoice_paid
    return to_pay_invoices.write({'state': 'paid'})
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/addons/purchase/models/account_invoice.py", line 219, in write
    result = result and super(AccountInvoice, invoice).write(vals)
  File "/opt/bitnami/apps/odoo/data/addons/11.0/customer_account_followup/account_invoice.py", line 16, in write
    receivable_line.blocked = True
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/fields.py", line 955, in __set__
    record.ensure_one()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180218-py3.6.egg/odoo/models.py", line 4267, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.move.line(918, 917)

Any help would be greatly appreciated.

Avatar
Discard

Have you installed any custom module today ? or made any changes in the odoo core code today.If you have installed any custom code, uninstall those and try the same(you can get a duplicate db and check the above)

Author Best Answer

Hi Niyas,

thank you for your reply.

No I haven't installed any other modules or changed the core in anyway.

But I am not sure if something else may have caused this problem.

The sales order was first confirmed to a different product. My mistake. I wanted to delete that product and confirm the correct product. The deletion did not work. So I set that product to zero and added the other product and confirmed it again.

So far so good. I was able to print the delivery note and invoice. The complete order was still showing the wrong product in one line and the correct product with correct status in a second line.

Again I tried to delete the wrong product from the sales order which did not work. Therefore I just leave it as is.

Now the payment arrived for the correctly printed invoice and I wanted to register the payment. And then I received the error message.

Today I registered payments for my vendor and that worked. Therefore I assume it has something to do alone with this record.

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 21
977
0
Mar 15
2839
0
Apr 17
1554