Code review comment for lp://staging/~openerp-mexico-team-activo/openerp-mexico-localization/7.0-l10n_mx_diot-dev-echeverri

Revision history for this message
Isaac López Zúñiga (isaako34) wrote :

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.

Saludos.

« Back to merge proposal