account.invoice.line(1,) has no member named "tracking_id"'
Buenas tardes
Trabajando con la versión master de PYERP
Al momento de timbrar nos marca error al validar la factura
2016-11-22 22:03:25,487 56879 INFO MASTER report_aeroo: registering report.invoice.report.aaero (account.invoice)
None
2016-11-22 22:03:25,492 56879 INFO MASTER report_aeroo: Start process report.invoice.report.aaero (account.invoice)
None
2016-11-22 22:03:26,286 56879 ERROR MASTER report_aeroo: Report generation error!
Traceback (most recent call last):
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 580, in create_aeroo_report
data = basic.generate(**oo_parser.localcontext).render().getvalue()
File "/home/jorge-medina/pyerpmaster/eggs/aeroolib-1.2.0-py2.7.egg/aeroolib/plugins/base.py", line 51, in render
return self.serializer(self.events)
File "/home/jorge-medina/pyerpmaster/eggs/aeroolib-1.2.0-py2.7.egg/aeroolib/plugins/opendocument.py", line 1209, in __call__
for kind, data, pos in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
for event in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 598, in _flatten
stream = _apply_directives(data[1], data[0], ctxt, vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 274, in _apply_directives
stream = directives[0](iter(stream), directives[1:], ctxt, **vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/directives.py", line 401, in __call__
value = _eval_expr(self.expr, ctxt, vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 177, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 1, in <Expression u'l.tracking_id.import_id'>
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 325, in lookup_attr
val = cls.undefined(key, owner=obj)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 413, in undefined
raise UndefinedError(key, owner=owner)
UndefinedError: account.invoice.line(1,) has no member named "tracking_id"
Traceback (most recent call last):
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 580, in create_aeroo_report
data = basic.generate(**oo_parser.localcontext).render().getvalue()
File "/home/jorge-medina/pyerpmaster/eggs/aeroolib-1.2.0-py2.7.egg/aeroolib/plugins/base.py", line 51, in render
return self.serializer(self.events)
File "/home/jorge-medina/pyerpmaster/eggs/aeroolib-1.2.0-py2.7.egg/aeroolib/plugins/opendocument.py", line 1209, in __call__
for kind, data, pos in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 618, in _include
for event in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 598, in _flatten
stream = _apply_directives(data[1], data[0], ctxt, vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 274, in _apply_directives
stream = directives[0](iter(stream), directives[1:], ctxt, **vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/directives.py", line 401, in __call__
value = _eval_expr(self.expr, ctxt, vars)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 177, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 1, in <Expression u'l.tracking_id.import_id'>
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 325, in lookup_attr
val = cls.undefined(key, owner=obj)
File "/home/jorge-medina/pyerpmaster/eggs/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/eval.py", line 413, in undefined
raise UndefinedError(key, owner=owner)
UndefinedError: account.invoice.line(1,) has no member named "tracking_id"
2016-11-22 22:03:26,290 56879 ERROR MASTER openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 803, in __call__
return self.method(*args, **kw)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/home/jorge-medina/pyerpmaster/parts/server/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/home/jorge-medina/pyerpmaster/parts/server/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/server/addons/account/account_invoice.py", line 522, in invoice_open
self, cr=cr, uid=uid, ids=ids, context=context
File "/home/jorge-medina/pyerpmaster/eggs/blinker-1.4-py2.7.egg/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/home/jorge-medina/pyerpmaster/parts/server/addons/account/account_invoice.py", line 1164, in invoice_validate
self, cr=cr, uid=uid, ids=ids, context=context
File "/home/jorge-medina/pyerpmaster/eggs/blinker-1.4-py2.7.egg/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/home/jorge-medina/pyerpmaster/parts/l10n_mx/l10n_mx_ir_attachment_facturae/models/account_invoice.py", line 202, in create_ir_attachment_facturae
self.action_printable(cr, uid, attach_ids, context=context)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/l10n_mx/l10n_mx_facturae/models/account_invoice.py", line 902, in action_printable
"invoice.report.aaero", fname
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/l10n_mx/l10n_mx_facturae/models/account_invoice.py", line 170, in create_report
context
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/report/__init__.py", line 40, in render_report
return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jorge-medina/pyerpmaster/parts/server/openerp/addons/base/ir/ir_actions.py", line 159, in render_report
return new_report.create(cr, uid, res_ids, data, context)
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 866, in create
res = fnct(cr, uid, ids, data, report_xml, context)
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 723, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 626, in create_single_pdf
return self.create_aeroo_report(cr, uid, ids, data, report_xml, context=context, output=output)
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 584, in create_aeroo_report
self._raise_exception(e, print_id)
File "/home/jorge-medina/pyerpmaster/parts/aeroo_reports/report_aeroo/report_aeroo.py", line 461, in _raise_exception
raise Exception(_("Aeroo Reports: Error while generating the report."), e, str(e), _("For more reference inspect error logs."))
Exception: (u'Aeroo Reports: Error while generating the report.', UndefinedError('account.invoice.line(1,) has no member named "tracking_id"',), 'account.invoice.line(1,) has no member named "tracking_id"', u'For more reference inspect error logs.')
Lo curioso que si regresa correcto del PAC
2016-11-22 22:03:25,164 56879 DEBUG MASTER openerp.addons.l10n_mx_facturae_pac_facturalo.models.ir_attachment_facturae: OrderedDict([(u'soap:Envelope', OrderedDict([(u'@xmlns:soap', u'http://schemas.xmlsoap.org/soap/envelope/'), (u'soap:Body', OrderedDict([(u'ns2:timbrarResponse', OrderedDict([(u'@xmlns:ns2', u'http://service.timbrado.xpd.mx/'), (u'return', OrderedDict([(u'codigo', u'200'), (u'mensaje', u'Proceso satisfactorio'), (u'timbre', u'<cfdi:Comprobante LugarExpedicion="CULIACAN Sinaloa, Mexico" Moneda="MXN" TipoCambio="1.0" certificado="MIIEYTCCA0mgAwIBAgIUMjAwMDEwMDAwMDAyMDAwMDE0MjgwDQYJKoZIhvcNAQEFBQAwggFcMRowGAYDVQQDD BFBLkMuIDIgZGUgcHJ1ZWJhczEvMC0GA1UECgwmU2VydmljaW8gZGUgQWRtaW5pc3RyYWNpw7NuIFRyaWJ1dGFyaWExODA2Bg NVBAsML0FkbWluaXN0cmFjacOzbiBkZSBTZWd1cmlkYWQgZGUgbGEg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tPsONGVDyZL6IUBBUlFoecQhP9AO39er8zIbeU2b0MMBJxCt4vbDKFvT9i3V0Puoo+kmmkf15D2rBGR+drd8H8Yg8TDGFKf2zKmRsgT7nIeou6WpfYp570WIvLJQY+fsMp334D05Up5ykYSAxUGa30RdUzA4rxN5hT+W9whWVGD88TD33Nw55uNRUcRO3ZUVHmdWRG+GjhlfsD" descuento="0" fecha="2016-11-22T15:03:23" folio="9" formaDePago="Pago en una sola exhibicion" metodoDePago="NA" noCertificado="20001000000200001428" sello="jPC36jAnTk5dPx70BaW8zBLcH1jeEGzKU2VyDt0TcZNZKfhtugKLw7GCbyfsBszBEZnqudIng5jK64Z4Qw3Mxq6rMPcJItC69Y1gzKbLEm9D1I0fR9ZylaOoLTvMXzcge3+XeQRlXQ3RrelRu0snlaAnMSl+k90UcyriJojvI2g=" subTotal="75.00" tipoDeComprobante="ingreso" total="87.00" version="3.2" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cfdi="http://www.sat.gob.mx/cfd/3"><cfdi:Emisor nombre="Your Company" rfc="AAA010101AAA"><cfdi:DomicilioFiscal calle="CONOCIDO" codigoPostal="80000" colonia="CENTRO" estado="Sinaloa" municipio="CULIACAN" noExterior="123" noInterior="A" pais="Mexico"/><cfdi:ExpedidoEn calle="CONOCIDO" codigoPostal="80000" colonia="CENTRO" estado="Sinaloa" municipio="CULIACAN" noExterior="123" noInterior="A" pais="Mexico"/><cfdi:RegimenFiscal Regimen="Personas morales del regimen general"/></cfdi:Emisor><cfdi:Receptor nombre="Publico General" rfc="XAXX010101000"><cfdi:Domicilio calle="Conocido" codigoPostal="80000" colonia="Centro" estado="Sinaloa" municipio="Culiacan" noExterior="1" noInterior="A" pais="Mexico"/></cfdi:Receptor>cfdi:Conceptos<cfdi:Concepto cantidad="1.00" descripcion="Servicio" importe="75.00" unidad="Hora(s)" valorUnitario="75.00"/></cfdi:Conceptos><cfdi:Impuestos totalImpuestosTrasladados="12.00">cfdi:Traslados<cfdi:Traslado importe="12.00" impuesto="IVA" tasa="16.00"/><cfdi:Traslado importe="0.00" impuesto="IEPS" tasa="0.00"/></cfdi:Traslados></cfdi:Impuestos>cfdi:Complemento<tfd:TimbreFiscalDigital FechaTimbrado="2016-11-22T16:03:22" UUID="cf529061-3ae3-4304-b178-d45ed79abb27" noCertificadoSAT="20001000000300003693" selloCFD="jPC36jAnTk5dPx70BaW8zBLcH1jeEGzKU2VyDt0TcZNZKfhtugKLw7GCbyfsBszBEZnqudIng5jK64Z4Qw3Mxq6rMPcJItC69Y1gzKbLEm9D1I0fR9ZylaOoLTvMXzcge3+XeQRlXQ3RrelRu0snlaAnMSl+k90UcyriJojvI2g=" selloSAT="AU1RoEYJBZIHywxHfHSuZeSyrkjTAXHSjbqldo4M+JCVg8vgnymULQrs1uBbHKJsTpNvNoav3WYXsHjrz4xISyva/sQ4hqNi2lx58FJk8YTuCovuxviiHQ6zY36e+37RISmoPnqsVSb+yqN2nUX/YkiYzE12PjS57Doi+B3UGMQ=" version="1.0" xsi:schemaLocation="http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/TimbreFiscalDigital/TimbreFiscalDigital.xsd" xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital"/></cfdi:Complemento></cfdi:Comprobante>'), (u'uuid', u'cf529061-3ae3-4304-b178-d45ed79abb27')]))]))]))]))])
Como pueden ver viene el UUID del SAT, sin embargo al tronar en el aerooreports , no la valida y queda en borrador, esto puede ser un problema porque se quema un timbre.
Busque como configurar el Aeroo Report pero al parecer es un servicio, necesito levantar algo adicional aparte de instalarlo en ODOO?
Muchas Gracias
Saludos