Que tal Federico, tengo una duda, pues al ejecutar el wizard, me arroja el siguiente error en el log:
POST /web/dataset/call_kw/account.diot.report:read HTTP/1.0" 200 -
Periodo elegido 87
date_period [browse_record(account.period, 87)]
2013-06-01 2013-06-30
account_invoice [1590, 1593, 1591, 1594, 1595, 1597, 1618, 1596, 1622, 1621, 1592] 11
[browse_record(account.invoice.tax, 11)]
Tax DIOT ID ----->>>> None
2013-06-06 00:21:21,307 29447 ERROR IT_contpaq_20130530-20130605_231024 openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/mnt/home/testing/openerp7_testing_AMX/com_addons/l10n_mx_diot_report/wizard/wizard_diot_report.py", line 89, in create_diot
if tax.tax_id.tax_category_id.code == 'IVA' and tax.tax_id.amount == 0.16:
AttributeError: 'NoneType' object has no attribute 'code'
2013-06-06 00:21:21,307 29447 ERROR IT_contpaq_20130530-20130605_231024 openerp.netsvc: 'NoneType' object has no attribute 'code'
Traceback (most recent call last):
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 188, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/home/testing/openerp7_testing_AMX/server/openerp/osv/osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/mnt/home/testing/openerp7_testing_AMX/com_addons/l10n_mx_diot_report/wizard/wizard_diot_report.py", line 89, in create_diot
if tax.tax_id.tax_category_id.code == 'IVA' and tax.tax_id.amount == 0.16:
AttributeError: 'NoneType' object has no attribute 'code'
2013-06-06 00:21:21,309 29447 INFO IT_contpaq_20130530-20130605_231024 werkzeug: 127.0.0.1 - - [06/Jun/2013 00:21:21] "POST /web/dataset/call_button HTTP/1.0" 200 -
Estuve buscando el campo: "tax_diot_id", sin embargo no lo encontré en tu módulo pero el wizard si lo manda llamar, por lo que no se si hay que instalar algún otro módulo que agrega este campo o que es lo que me falta hacer.
Que tal Federico, tengo una duda, pues al ejecutar el wizard, me arroja el siguiente error en el log:
POST /web/dataset/ call_kw/ account. diot.report: read HTTP/1.0" 200 - record( account. period, 87)] record( account. invoice. tax, 11)] 20130530- 20130605_ 231024 openerp.osv.osv: Uncaught exception testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 131, in wrapper testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 197, in execute testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 185, in execute_cr testing/ openerp7_ testing_ AMX/com_ addons/ l10n_mx_ diot_report/ wizard/ wizard_ diot_report. py", line 89, in create_diot id.tax_ category_ id.code == 'IVA' and tax.tax_id.amount == 0.16: 20130530- 20130605_ 231024 openerp.netsvc: 'NoneType' object has no attribute 'code' testing/ openerp7_ testing_ AMX/server/ openerp/ netsvc. py", line 292, in dispatch_rpc getService( service_ name).dispatch( method, params) testing/ openerp7_ testing_ AMX/server/ openerp/ service/ web_services. py", line 626, in dispatch testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 188, in execute_kw testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 131, in wrapper testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 197, in execute testing/ openerp7_ testing_ AMX/server/ openerp/ osv/osv. py", line 185, in execute_cr testing/ openerp7_ testing_ AMX/com_ addons/ l10n_mx_ diot_report/ wizard/ wizard_ diot_report. py", line 89, in create_diot id.tax_ category_ id.code == 'IVA' and tax.tax_id.amount == 0.16: 20130530- 20130605_ 231024 werkzeug: 127.0.0.1 - - [06/Jun/2013 00:21:21] "POST /web/dataset/ call_button HTTP/1.0" 200 -
Periodo elegido 87
date_period [browse_
2013-06-01 2013-06-30
account_invoice [1590, 1593, 1591, 1594, 1595, 1597, 1618, 1596, 1622, 1621, 1592] 11
[browse_
Tax DIOT ID ----->>>> None
2013-06-06 00:21:21,307 29447 ERROR IT_contpaq_
Traceback (most recent call last):
File "/mnt/home/
return f(self, dbname, *args, **kwargs)
File "/mnt/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/mnt/home/
if tax.tax_
AttributeError: 'NoneType' object has no attribute 'code'
2013-06-06 00:21:21,307 29447 ERROR IT_contpaq_
Traceback (most recent call last):
File "/mnt/home/
result = ExportService.
File "/mnt/home/
res = fn(db, uid, *params)
File "/mnt/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/mnt/home/
return f(self, dbname, *args, **kwargs)
File "/mnt/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/mnt/home/
if tax.tax_
AttributeError: 'NoneType' object has no attribute 'code'
2013-06-06 00:21:21,309 29447 INFO IT_contpaq_
Estuve buscando el campo: "tax_diot_id", sin embargo no lo encontré en tu módulo pero el wizard si lo manda llamar, por lo que no se si hay que instalar algún otro módulo que agrega este campo o que es lo que me falta hacer.
Saludos.