Error al momento de validar una factura cuando el cliente no tiene sujeto a IEPS chequeado
Closed
Error al momento de validar una factura cuando el cliente no tiene sujeto a IEPS chequeado
Hola buen día @agb80, @jose.maldonado, @cuauhtemoc.diaz como me comentaste ahora por la mañana que hiciera un issue para tratar de mandar un mensaje mas amigable al usuario cuando el cliente no tiene chequeado el sujeto a IEPS en su ficha tecnica y al momento de validar una factura que tiene consigo en sus partidas el impues IEPS marca el siguiente error
File "/opt/pyerp_master/parts/l10n_mx_facturae/l10n_mx_facturae/models/account_invoice.py", line 276, in sign_invoice_sat cfdi.action_validate() File "/opt/pyerp_master/parts/server/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/opt/pyerp_master/parts/facturacion/l10n_mx_ir_attachment_facturae/models/ir_attachment_facturae.py", line 438, in action_validate self.sign_cfdi_sat() File "/opt/pyerp_master/parts/server/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/opt/pyerp_master/parts/server/openerp/api.py", line 407, in new_api result = [method(rec, *args, **kwargs) for rec in self] File "/opt/pyerp_master/parts/facturacion/l10n_mx_ir_attachment_facturae/models/ir_attachment_facturae.py", line 746, in sign_cfdi_sat record.id, config.template_xml_sign, model=record._name, File "/opt/pyerp_master/parts/facturacion/l10n_mx_ir_attachment_facturae/models/ir_attachment_facturae.py", line 710, in create_report_xml xml_data = parse_xml_string(result.strip()) AttributeError: 'bool' object has no attribute 'strip'
Esto es parte de error pero en si sale porque si en la factura se usa IEPS y en el cliente no viene chequeado Sujeto a IEPS el sistema nos lanza el error Saludos
mentioned in merge request !29 (closed)
closed via commit 5f07348d
closed via merge request !26 (merged)
Please register or sign in to reply