When we try to create a customer invoice, a window pop ups notifying us of an error, just to give you an overview, please see below. Hope someone can help us on how to correct this. thank you very much
What are the steps to reproduce your issue?
> Go to Accounting Module - Customers - Invoices - Create Invoice - When adding a product line, the error occurs
What is the current behavior that you observe?
> Cannot create an invoice as the error kept popping up and telling us to report it to support
- The Error that we kept receiving once we attempt to create an invoice
Error:
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 1339, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1331, 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/odoo/odoo/models.py", line 6249, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "/home/odoo/src/odoo/odoo/models.py", line 6028, in _onchange_eval
method_res = method(self)
File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 3223, in _onchange_price_subtotal
line.update(line._get_fields_onchange_subtotal())
File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2989, in _get_fields_onchange_subtotal
date=date or self.move_id.date,
File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 3014, in _get_fields_onchange_subtotal_model
balance = currency._convert(price_subtotal, company.currency_id, company, date)
File "/home/odoo/src/odoo/odoo/addons/base/models/res_currency.py", line 192, in _convert
assert company, "convert amount from unknown company"
AssertionError: convert amount from unknown company