OCA / sale-reporting

GNU Affero General Public License v3.0
50 stars 193 forks source link

[15] sale_layout_category_hide_detail shows an error when installling #212

Closed fgarcia-humanoide closed 1 year ago

fgarcia-humanoide commented 1 year ago

In odoo 15 sale_layout_category_hide_detail shows an error when installling

Module

sale_layout_category_hide_detail

Describe the bug

shows this error when installing

RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 683, in _tag_root f(rec) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 661, in _tag_template return self._tag_record(record) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 586, in _tag_record record = model._load_records([data], self.mode == 'update') File "/usr/lib/python3/dist-packages/odoo/models.py", line 4431, in _load_records records = self._load_records_create([data['values'] for data in to_create]) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4347, in _load_records_create return self.create(values) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 413, in _model_create_multi return create(self, arg) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 546, in create result = super(View, self.with_context(ir_ui_view_partial_validation=True)).create(vals_list) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 413, in _model_create_multi return create(self, arg) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 613, in create recs = super().create(vals_list) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 413, in _model_create_multi return create(self, arg) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4079, in create records = self._create(data_list) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4244, in _create records._validate_fields(name for data in data_list for name in data['stored']) File "/usr/lib/python3/dist-packages/odoo/models.py", line 1367, in _validate_fields check(self) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 437, in _check_xml raise err from None File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 428, in _check_xml combined_arch = view._get_combined_arch() File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 991, in _get_combined_arch arch = root.with_prefetch(tree_views._prefetch_ids)._combine(hierarchy) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 932, in _combine combined_arch = view.apply_inheritance_specs(combined_arch, arch) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 869, in apply_inheritance_specs self._raise_view_error(str(e), specs_tree) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 746, in _raise_view_error raise err from from_exception odoo.exceptions.ValidationError: Ocurrió un error al validar la vista:

El elemento '' no puede ser localizado en la vista padre

The above exception was the direct cause of the following exception:

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 687, in dispatch result = self._call_function(self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, 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 348, in checked_call result = self.endpoint(*a, kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 916, in call return self.method(*args, *kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 535, in response_wrap response = f(args, kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1346, in call_button action = self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1334, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 464, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 451, in _call_kw_multi result = method(recs, *args, *kwargs) File "", line 2, in button_immediate_install File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log return method(self, args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 486, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 603, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 87, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 474, in load_modules processed_modules += load_marked_modules(cr, graph, File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 363, in load_marked_modules loaded, processed = load_module_graph( File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 222, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 748, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 814, in convert_xml_import obj.parse(doc.getroot()) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 734, in parse self._tag_root(de) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 694, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback 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 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.tools.convert.ParseError: while parsing None:8 Ocurrió un error al validar la vista:

El elemento '' no puede ser localizado en la vista padre

View error context: {'file': '/mnt/extra-addons/sale-reporting/sale_layout_category_hide_detail/views/invoice_report_templates.xml', 'line': 2, 'name': 'report_invoice_document_hide_detail', 'view': ir.ui.view(2428,), 'view.model': False, 'view.parent': ir.ui.view(1021,), 'xmlid': 'report_invoice_document_hide_detail'}

To Reproduce

15

Steps to reproduce the behavior:

  1. install

Expected behavior th module working Additional context

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.