Error en el dominio de hr_payslip_run.xml
Resumen
Al intentar instalar el módulo l10n_mx_payroll sale un error referente campo cfdi_error_count
que se tiene en un dominio, actualmente la vista del filtro la tengo comentada, se puede obvervar en el siguiente merge !109 (diffs) además la función calculada del campo cfdi_error_count
se encuentra en el siguiente !109 (diffs)
Logs relevantes y/o capturas de pantalla
Odoo Server Error
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/convert.py", line 683, in _tag_root
f(rec)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/convert.py", line 586, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 4453, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 4358, in _load_records_create
return self.create(values)
File "<decorator-gen-44>", line 2, in create
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 418, in _model_create_multi
return create(self, arg)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 548, in create
result = super(View, self.with_context(ir_ui_view_partial_validation=True)).create(vals_list)
File "<decorator-gen-69>", line 2, in create
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 418, in _model_create_multi
return create(self, arg)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_fields.py", line 613, in create
recs = super().create(vals_list)
File "<decorator-gen-15>", line 2, in create
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 418, in _model_create_multi
return create(self, arg)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 4095, in create
records = self._create(data_list)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 4260, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 1378, in _validate_fields
check(self)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 469, in _check_xml
raise err.with_traceback(e.__traceback__) from None
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 443, in _check_xml
view._validate_view(combined_arch, view.model)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 1301, in _validate_view
validator(node, name_manager, node_info)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 1434, in _validate_tag_filter
self._check_field_paths(node, fnames, name_manager.model._name, f"{desc} ({domain})")
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 1846, in _check_field_paths
self._raise_view_error(msg, node)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 748, in _raise_view_error
raise err from from_exception
odoo.exceptions.ValidationError: Ocurrió un error al validar la vista cercana a:
<search string="Search Payslip Batches">
<field name="name" string="Payslip Batches"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="date_start"/>
<field name="date_end"/>
No se puede buscar el campo 'cfdi_error_count' en el camino 'cfdi_error_count' en domain of <filter name="payslip_run_pending"> ([('cfdi_error_count','>',0)]) )
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
result = request.dispatch()
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 702, in dispatch
result = self._call_function(**self.params)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 368, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 357, in checked_call
result = self.endpoint(*a, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 925, in __call__
return self.method(*args, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 546, in response_wrap
response = f(*args, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/addons/web/controllers/main.py", line 1328, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/addons/web/controllers/main.py", line 1316, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 471, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 456, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-82>", line 2, in button_immediate_upgrade
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 650, in button_immediate_upgrade
return self._button_immediate_function(self.env.registry[self._name].button_upgrade)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 587, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 470, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 363, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/convert.py", line 748, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/convert.py", line 814, in convert_xml_import
obj.parse(doc.getroot())
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/convert.py", line 734, in parse
self._tag_root(de)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/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 "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 658, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_payroll/l10n_mx_hr_payroll/views/hr_payslip_run.xml:29
Ocurrió un error al validar la vista cercana a:
<search string="Search Payslip Batches">
<field name="name" string="Payslip Batches"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="date_start"/>
<field name="date_end"/>
No se puede buscar el campo 'cfdi_error_count' en el camino 'cfdi_error_count' en domain of <filter name="payslip_run_pending"> ([('cfdi_error_count','>',0)]) )
View error context:
{'file': '/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_payroll/l10n_mx_hr_payroll/views/hr_payslip_run.xml',
'line': 3,
'name': 'hr.payslip.run.search.inherit.cfdi.error.view',
'view': ir.ui.view(1425,),
'view.model': 'hr.payslip.run',
'view.parent': ir.ui.view(671,),
'xmlid': 'hr_payslip_run_search_inherit_cfdi_error_view'}