Odoo Help


Bug? After nightly update, attempts to register or receive payments generate error "compute to unknown currency"

Kevin Sawyer
on 10/24/16, 2:05 PM 681 views

Updated Odoo 9 this morning (10/24/2016) and now when we attempt to register incoming or outgoing payments, we get the following errors.  We're in USD and do not have multiple currencies enabled.  Any ideas?

Odoo Server Error

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 648, in _handle_exception
  return super(JsonRequest, self)._handle_exception(exception)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 685, in dispatch
  result = self._call_function(**self.params)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 321, in _call_function
  return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
  return f(dbname, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call
  result = self.endpoint(*a, **kw)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 964, in __call__
  return self.method(*args, **kw)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 514, in
  response_wrap response = f(*args, **kw)

File "/opt/odoo/enterprise/addons/web/controllers/main.py", line 907, in call_kw
  return self._call_kw(model, method, args, kwargs)

File "/opt/odoo/enterprise/addons/web/controllers/main.py", line 899, in _call_kw
  return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
  return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 381, in old_api
  result = method(recs, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 6080, in onchange
  newval = record[name]

File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5757, in __getitem__
  return self._fields[key].__get__(self, type(self))

File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 832, in __get__

File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 947, in determine_draft_value

File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 883, in _compute_value
  getattr(records, self.compute)()

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 248, in wrapper
  return new_api(self, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 425, in new_api
  result = [method(rec, *args, **kwargs) for rec in self]

File "/opt/odoo/enterprise/addons/account/models/account_payment.py", line 184, in _compute_payment_difference
  self.payment_difference = self._compute_total_invoices_amount() - self.amount

File "/opt/odoo/enterprise/addons/account/models/account_payment.py", line 93, in _compute_total_invoices_amount
  total += inv.company_currency_id.with_context(date=self.payment_date).compute(inv.residual_company_signed, payment_currency)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 248, in wrapper
  return new_api(self, *args, **kwargs)

File "/opt/odoo/enterprise/addons/base/res/res_currency.py", line 235, in compute
  assert to_currency, "compute to unknown currency"

AssertionError: compute to unknown currency

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 10/24/16, 2:05 PM
Seen: 681 times
Last updated: 12/21/16, 7:33 AM