Error al confirmar Attachment de Factura

Bug #1349185 reported by Alex Morales
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-mexico-localization
Invalid
Undecided
Unassigned

Bug Description

Hola,

Primero, gracias, por el fantastico trabajo que realizan con este conjunto de addons.

Seguí los pasos que detalla el documento de configuración, para la versión 7.0 de OpenERP de factura electronica.
El documento es el actualizado al día 25/06/2014.

Se me presenta un problema al momento de validar el attachment de facturae (ir.attachment.facturae.mx), me mando un error de tamaño no valido de acuerdo a la validación del SAT.

Me indica que el tamaño de nombre del elemento (A000307FE3) es menor a 12 dígitos que es el mínimo requerido por el SAT.

Traceback (most recent call last):
File "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py", line 148,
in signal_confirm cr, uid, [invoice.id], context=context)
File "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_facturae_pac/invoice.py", line 229,
in _get_facturae_invoice_xml_data self.validate_scheme_facturae_xml(cr, uid, ids, [data_xml], facturae_version)
File "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_facturae_pac/invoice.py", line 254,
in validate_scheme_facturae_xml raise osv.except_osv('Error al validar la estructura del xml!',
'Validación de XML versión %s:\n%s'%(facturae_version, result))
except_osv: ('Error al validar la estructura del xml!',
"Validaci\xc3\xb3n de XML versi\xc3\xb3n 3.2:\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc': [facet 'minLength']
The value 'A000307FE3' has a length of '10';
this underruns the allowed minimum length of '12'.\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc': [facet 'pattern']
The value 'A000307FE3' is not accepted by the pattern '[A-Z,\xc3\x91,&]{3,4}[0-9]{2}[0-1][0-9][0-3][0-9][A-Z,0-9]?[A-Z,0-9]?[0-9,A-Z]?'.\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc': 'A000307FE3'
is not a valid value of the atomic type '{http://www.sat.gob.mx/cfd/3}t_RFC'.\n")

¿ Este tamaño es posible configurarlo en alguna entrada del menú ? o es un bug.

Saludos.

Tags: confimar xml
Revision history for this message
Alex Morales (alex-moralesarce+launchpad) wrote :
Revision history for this message
Federico Manuel Echeverri Choux (echeverrifm) wrote : Re: [Bug 1349185] [NEW] Error al confirmar Attachment de Factura

Hola

No, es posible ya que todos los RFC para el SAT deben tener 12 o 13
dígitos. No pueden tener ni más, ni menos.
Normalmente son 12 dígitos para personas morales y 13 para personas
físicas.

Saludos
On Jul 27, 2014 4:40 PM, "Alex Morales" <
<email address hidden>> wrote:

> Public bug reported:
>
> Hola,
>
> Primero, gracias, por el fantastico trabajo que realizan con este
> conjunto de addons.
>
> Seguí los pasos que detalla el documento de configuración, para la versión
> 7.0 de OpenERP de factura electronica.
> El documento es el actualizado al día 25/06/2014.
>
> Se me presenta un problema al momento de validar el attachment de
> facturae (ir.attachment.facturae.mx), me mando un error de tamaño no
> valido de acuerdo a la validación del SAT.
>
> Me indica que el tamaño de nombre del elemento (A000307FE3) es menor a
> 12 dígitos que es el mínimo requerido por el SAT.
>
> Traceback (most recent call last):
> File
> "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py",
> line 148,
> in signal_confirm cr, uid, [invoice.id], context=context)
> File
> "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_facturae_pac/invoice.py",
> line 229,
> in _get_facturae_invoice_xml_data self.validate_scheme_facturae_xml(cr,
> uid, ids, [data_xml], facturae_version)
> File
> "/opt/Odoo/addons/openerp-mexico-localization/l10n_mx_facturae_pac/invoice.py",
> line 254,
> in validate_scheme_facturae_xml raise osv.except_osv('Error al validar la
> estructura del xml!',
> 'Validación de XML versión %s:\n%s'%(facturae_version, result))
> except_osv: ('Error al validar la estructura del xml!',
> "Validaci\xc3\xb3n de XML versi\xc3\xb3n
> 3.2:\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
> Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc': [facet
> 'minLength']
> The value 'A000307FE3' has a length of '10';
> this underruns the allowed minimum length of
> '12'.\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
> Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc': [facet
> 'pattern']
> The value 'A000307FE3' is not accepted by the pattern
> '[A-Z,\xc3\x91,&]{3,4}[0-9]{2}[0-1][0-9][0-3][0-9][A-Z,0-9]?[A-Z,0-9]?[0-9,A-Z]?'.\n/tmp/openerp___facturae__UJlc6K.xml:2.253:
> Element '{http://www.sat.gob.mx/cfd/3}Emisor', attribute 'rfc':
> 'A000307FE3'
> is not a valid value of the atomic type '{
> http://www.sat.gob.mx/cfd/3}t_RFC'.\n")
>
> ¿ Este tamaño es posible configurarlo en alguna entrada del menú ? o es
> un bug.
>
> Saludos.
>
> ** Affects: openerp-mexico-localization
> Importance: Undecided
> Status: New
>
>
> ** Tags: confimar xml
>
> ** Attachment added: "Attahcment facturae"
>
> https://bugs.launchpad.net/bugs/1349185/+attachment/4163979/+files/action.ir.attachment.facturae.mx%20-%20OpenERP%202014-07-27%2009-52-40.png
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Project Group.
> https://bugs.launchpad.net/bugs/1349185
>
> Title:
> Error al confirmar Attachment de Factura
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/openerp-mexico-localization/+bug/1349185/+subscriptions
>

Nhomar - Vauxoo (nhomar)
Changed in openerp-mexico-localization:
status: New → Invalid
Revision history for this message
Alex Morales (alex-moralesarce+launchpad) wrote :

Ya di, con la solución al problema en la configuración del RFC, antepuse MX al RFC.

Y listo, con eso funciono.

Gracias.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.