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
Tags:

Assigned to
Contact
Ujjaval Patel
ujjavalpatel@browseinfo.in
Reported by
Contact
Jenni Heikkilä
jenni@vividi.fi

Description
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/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 1343, in call_button
action = 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/enterprise/account_invoice_extract/models/account_invoice.py", line 583, in check_status
record._check_status()
File "/home/odoo/src/enterprise/account_invoice_extract/models/account_invoice.py", line 612, in _check_status
self._save_form(ocr_results)
File "/home/odoo/src/enterprise/account_invoice_extract_purchase/models/account_invoice.py", 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/account_invoice.py", line 735, in _save_form
with move_form.invoice_line_ids.edit(i) as line:
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1588, in __getattr__
return O2MProxy(self, field)
File "/home/odoo/src/odoo/odoo/tests/common.py", line 2084, in __init__
model = self._model
File "/home/odoo/src/odoo/odoo/tests/common.py", line 2106, in _model
ctx = self._parent._get_context(self._field)
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1667, in _get_context
ctx = dict(self._values_to_save(all_fields=True))
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1745, in _values_to_save
changed, all_fields
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1808, in _values_to_save_
for k, v in Model.default_get(list(missing)).items()
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1808, in <genexpr>
for k, v in Model.default_get(list(missing)).items()
KeyError: 'branch_id'

Message and communication history