Odoo Help

Welcome!

This community 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.

0

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

By
Kevin Sawyer
on 10/24/16, 2:05 PM 216 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__
  self.determine_draft_value(record)

File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 947, in determine_draft_value
  self._compute_value(record)

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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/24/16, 2:05 PM
Seen: 216 times
Last updated: 10/25/16, 1:30 AM