Issue:
Just upgraded from Odoo13 to Odoo14
In Odoo14, I get an error when using the NL btw statement.
I can create and save the statement without problem
However when clicking the “update” button to compute the btw statement lines, the system gives an error message related to l10n_nl_vat_statement.py. See details of the error message below.
In Odoo13 I did not get this error message.
Modules used:
Netherlands BTW statement, l10n_nl_tax_statement, by Onestein, version 14.0.1.0.0
(in combination with Odoo 14 Accounting by Odoo Mates, Odoo SA, version 14.0.8.0.0)
Analysis done so far
Reinstall the modules
Validate the configuration of the vat setup (although I am not sure what to look for)
Detailed error message
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 361, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 349, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 914, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 533, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1398, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1386, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/var/lib/odoo/addons/14.0/l10n_nl_tax_statement/models/l10n_nl_vat_statement.py", line 410, in statement_update
self._set_statement_lines(lines, move_lines)
File "/var/lib/odoo/addons/14.0/l10n_nl_tax_statement/models/l10n_nl_vat_statement.py", line 437, in _set_statement_lines
tags_map = self._get_tags_map()
File "/var/lib/odoo/addons/14.0/l10n_nl_tax_statement/models/l10n_nl_vat_statement.py", line 388, in _get_tags_map
matching.update({tag.id: (res_code.group(0), "omzet")})
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 641, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'NoneType' object has no attribute 'group'
Anyone have any ideas?