AttributeError: 'hr.payslip' object has no attribute 'l10n_mx_payroll_payslip_sindicalizado'
Resumen
En la plantilla XML del reporte, al agregar {{ o.folio }}
en Folio se presenta un error que tiene que ver con la función serie del objeto base_cfdi_mixin.py
Por favor, me puede indicar alguna posible solución a este error
Logs relevantes y/o capturas de pantalla
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/qweb.py", line 221, in render_template
yield from compiled_fn(self, values, log)
File "<template_1047>", line 66, in template_1047
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_ir_attachment_facturae/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py", line 71, in folio
return _sanitize(folio).replace(self.serie, "").strip()
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_ir_attachment_facturae/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py", line 54, in serie
d = self.env["ir.sequence"]._interpolation_dict_context()
AttributeError: 'ir.sequence' object has no attribute '_interpolation_dict_context'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/reporting-engine/report_xml/controllers/main.py", line 58, in report_download
response = self.report_routes(
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/aeroo_reports/report_aeroo/controllers/main.py", line 33, in report_routes
return super(ReportController, self).report_routes(
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/reporting-engine/report_xml/controllers/main.py", line 35, in report_routes
xml = report.with_context(**context)._render_qweb_xml(docids, data=data)[0]
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/reporting-engine/report_xml/models/ir_actions_report.py", line 59, in _render_qweb_xml
content, ttype = report_model.generate_report(
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/reporting-engine/report_xml/reports/report_report_xml_abstract.py", line 54, in generate_report
result_bin = ir_report._render_template(ir_report.report_name, data)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_actions_report.py", line 686, in _render_template
return view_obj._render_template(template, values).encode()
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 1994, in _render_template
return self.browse(self.get_view_id(template))._render(values, engine)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/addons/web_editor/models/ir_ui_view.py", line 35, in _render
return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_ui_view.py", line 2002, in _render
return self.env[engine]._render(self.id, qcontext)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_qweb.py", line 93, in _render
result = super()._render(template, values=values, **compile_options)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/qweb.py", line 134, in _render
result = ''.join(rendering)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/qweb.py", line 225, in render_template
raise QWebException("Error when render the template", self, options,
odoo.addons.base.models.qweb.QWebException: 'ir.sequence' object has no attribute '_interpolation_dict_context'
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/qweb.py", line 221, in render_template
yield from compiled_fn(self, values, log)
File "<template_1047>", line 66, in template_1047
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_ir_attachment_facturae/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py", line 71, in folio
return _sanitize(folio).replace(self.serie, "").strip()
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/l10n_mx_ir_attachment_facturae/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py", line 54, in serie
d = self.env["ir.sequence"]._interpolation_dict_context()
AttributeError: 'ir.sequence' object has no attribute '_interpolation_dict_context'
Error when render the template
AttributeError: 'ir.sequence' object has no attribute '_interpolation_dict_context'
Template: 1047
Path: /t/cfdi:Comprobante