IndexError: list index out of range al tratar de crear un producto Nuevo

Bug #883330 reported by Efrain Valles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openerp Venezuela
Fix Released
High
Gabriela Quilarque

Bug Description

Al intentar crear un producto se presenta el error IndexError: "list index out of range"...

  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/addons/l10n_ve_islr_withholding/product.py", line 60, in onchange_product_type
    concept_id = concept_obj.search(cr, uid, [('name','ilike','RETENTION DOES NOT APPLY')])[0]
IndexError: list index out of range

Pasos para reproducir, En una base de datos nueva sin datos de demostracion:

 - Instalar los modulos de la localizacion venezolana
 - Crear Clientes y Proveedores
 - Crear Producto

Comportamiento esperado:

 - Creación exitosa de un producto

Comportamiento actual:

 - Fallo de aplicación al intentar grabar.
 - La vista de formulario de producto nuevo aparece habilitada
 - El estado del producto es "Error al cargar registro"

Version de Aplicaciones:
 - Versión de OpenERP servidor y cliente, trunk serie 6.0
 - Localización venezolana en su revisión 445, actual hasta la fecha

TRACEBACK:
Environment Information :
System : Linux-3.0.0-12-generic-x86_64-with-Ubuntu-11.10-oneiric
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release : 3.0.0-12-generic
Operating System Version : #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF-8
Python Version : 2.7.2+
OpenERP-Client Version : 6.0.3
Last revision No. & ID :1909 launchpad_translations_on_behalf_of_openerp-20111026053714-m2zn4724homqxso1
Traceback (most recent call last):
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/keffie-jayx/openerp/stable/server/6.0/bin/addons/l10n_ve_islr_withholding/product.py", line 60, in onchange_product_type
    concept_id = concept_obj.search(cr, uid, [('name','ilike','RETENTION DOES NOT APPLY')])[0]
IndexError: list index out of range

Nhomar - Vauxoo (nhomar)
Changed in openerp-venezuela-localization:
assignee: nobody → Gabriela Quilarque (Vauxoo) (gabrielaquilarque97)
importance: Undecided → High
description: updated
Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Done, corrected in the revno 462 of trunk openerp-venezuela-localization

Changed in openerp-venezuela-localization:
status: New → Fix Released
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.