OCA / l10n-switzerland

Odoo Swiss localization
GNU Affero General Public License v3.0
53 stars 163 forks source link

[15.0][MIG] l10n_ch_invoice_reports #673

Closed ajaniszewska-dev closed 2 years ago

ajaniszewska-dev commented 2 years ago

standard migration + cherry pick of https://github.com/OCA/l10n-switzerland/commit/01bf022e67ca4a0c002e483f9c28bb7628069c65

ajaniszewska-dev commented 2 years ago

facing error:

The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/odoo/src/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/odoo/src/odoo/http.py", line 810, in dispatch r = self._call_function(self.params) File "/odoo/src/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, *kwargs) File "/odoo/src/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/odoo/src/odoo/http.py", line 348, in checked_call result = self.endpoint(*a, kw) File "/odoo/src/odoo/http.py", line 916, in call return self.method(*args, *kw) File "/odoo/src/odoo/http.py", line 535, in response_wrap response = f(args, kw) File "/odoo/src/addons/web/controllers/main.py", line 1943, in report_routes html = report.with_context(context)._render_qweb_html(docids, data=data)[0] File "/odoo/external-src/enterprise/web_studio/models/ir_actions_report.py", line 18, in _render_qweb_html return super(IrActionsReport, self)._render_qweb_html(docids, data) File "/odoo/src/odoo/addons/base/models/ir_actions_report.py", line 940, in _render_qweb_html return self._render_template(self.report_name, data), 'html' File "/odoo/src/odoo/addons/base/models/ir_actions_report.py", line 677, in _render_template return view_obj._render_template(template, values).encode() File "/odoo/src/odoo/addons/base/models/ir_ui_view.py", line 1985, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "", line 2, in get_view_id File "/odoo/src/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/odoo/src/addons/website/models/ir_ui_view.py", line 374, in get_view_id raise ValueError('View %r in website %r not found' % (xml_id, self._context['website_id'])) ValueError: View 'l10n_ch_invoice_reports.account_move_payment_report' in website 1 not found

key is not set on view so search by domain fails..