← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 712984] [NEW] bug with the import data in supplier list

 

Public bug reported:

In a french db (don't know if it could be the problem), web and GTK

go to supplier form (Achat/Carnet d'Adresses / Fournisseurs)
export these fields : 
- Actif
- Catégories
- Client
- Compte Client
- Compte fournisseurs
- Contacts
- Email
- Fournisseur
- Langue
- ID
- Pays
- Partenaire Parent
-Référence
- site web
- Société
-TVA
- Ville

export and then import directly without changes :


L'import a échoué car : Traceback (most recent call last): File "/home/odoo/openerp/server/bin/netsvc.py", line 492, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/odoo/openerp/server/bin/addons/use_control/services.py", line 40, in dispatch return super(recording_objects_proxy, self).dispatch(func, auth, params) File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch res = fn(db, uid, *params) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 511, in execute res = my_fct(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 489, in my_fct return fct_src(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/odoo/openerp/server/bin/osv/orm.py", line 861, in import_data process_liness(self, datas, [], current_module, self._name, fields_def, position=position) File "/home/odoo/openerp/server/bin/osv/orm.py", line 794, in process_liness res2 = process_liness(self, datas, prefix + [field[len(prefix)]], current_module, relation_obj._name, newfd, pos, first) File "/home/odoo/openerp/server/bin/osv/orm.py", line 770, in process_liness if field[len(prefix)]=='id': IndexError: list index out of range

** Affects: openobject-server
     Importance: High
     Assignee: OpenERP's Framework R&D (openerp-dev-framework)
         Status: Confirmed

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
   Importance: Undecided => High

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/712984

Title:
  bug with the import data in supplier list

Status in OpenERP Server:
  Confirmed

Bug description:
  In a french db (don't know if it could be the problem), web and GTK

  go to supplier form (Achat/Carnet d'Adresses / Fournisseurs)
  export these fields : 
  - Actif
  - Catégories
  - Client
  - Compte Client
  - Compte fournisseurs
  - Contacts
  - Email
  - Fournisseur
  - Langue
  - ID
  - Pays
  - Partenaire Parent
  -Référence
  - site web
  - Société
  -TVA
  - Ville

  export and then import directly without changes :

  
  L'import a échoué car : Traceback (most recent call last): File "/home/odoo/openerp/server/bin/netsvc.py", line 492, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/odoo/openerp/server/bin/addons/use_control/services.py", line 40, in dispatch return super(recording_objects_proxy, self).dispatch(func, auth, params) File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch res = fn(db, uid, *params) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 511, in execute res = my_fct(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 489, in my_fct return fct_src(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/odoo/openerp/server/bin/osv/orm.py", line 861, in import_data process_liness(self, datas, [], current_module, self._name, fields_def, position=position) File "/home/odoo/openerp/server/bin/osv/orm.py", line 794, in process_liness res2 = process_liness(self, datas, prefix + [field[len(prefix)]], current_module, relation_obj._name, newfd, pos, first) File "/home/odoo/openerp/server/bin/osv/orm.py", line 770, in process_liness if field[len(prefix)]=='id': IndexError: list index out of range





Follow ups

References