Branch module and Bill digitalization OCR (#1,411)
Status: OPEN
Date: 18/06/2021
ID: 1,411
S/O number: SO2021/1377964
Reviewer: Hiral Bhatt
Module Name: branch
Version: 13.0

Assigned to
Ujjaval Patel
Reported by
Jenni Heikkilä

Our customer got this error when he tried to digitize their bills:

Odoo Server Error

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/", line 14, in reraise
raise value
File "/home/odoo/src/odoo/odoo/", line 669, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/", line 915, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/", line 515, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/", line 1343, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/enterprise/account_invoice_extract/models/", line 583, in check_status
File "/home/odoo/src/enterprise/account_invoice_extract/models/", line 612, in _check_status
File "/home/odoo/src/enterprise/account_invoice_extract_purchase/models/", line 89, in _save_form
super(AccountMove, self)._save_form(ocr_results, no_ref=no_ref)
File "/home/odoo/src/enterprise/account_invoice_extract/models/", line 735, in _save_form
with move_form.invoice_line_ids.edit(i) as line:
File "/home/odoo/src/odoo/odoo/tests/", line 1588, in __getattr__
return O2MProxy(self, field)
File "/home/odoo/src/odoo/odoo/tests/", line 2084, in __init__
model = self._model
File "/home/odoo/src/odoo/odoo/tests/", line 2106, in _model
ctx = self._parent._get_context(self._field)
File "/home/odoo/src/odoo/odoo/tests/", line 1667, in _get_context
ctx = dict(self._values_to_save(all_fields=True))
File "/home/odoo/src/odoo/odoo/tests/", line 1745, in _values_to_save
changed, all_fields
File "/home/odoo/src/odoo/odoo/tests/", line 1808, in _values_to_save_
for k, v in Model.default_get(list(missing)).items()
File "/home/odoo/src/odoo/odoo/tests/", line 1808, in <genexpr>
for k, v in Model.default_get(list(missing)).items()
KeyError: 'branch_id'

Message and communication history