c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #28654
[Bug 811519] Re: Invalid error message when import failed due to invalid custom ID format
Yes it works, and the error message is usefull now:
L'import a échoué car : Erreur pendant l'import de cet
enregistrement:ean13: 3303430010074list_price: 36.09description: JEU 10
SYNOPT NOIR FLECHE ARR.purchase_ok: Truestandard_price: 36.09uom_id:
1sale_ok: Falsedescription_purchase: JEU 10 SYNOPT NOIR
FLECHEdefault_code: U.A01007uom_po_id: 1description_sale: JEU 10 SYNOPT
NOIR FLECHEname: JEU 10 SYNOPT NOIR FLECHE ARR.. Message d'erreur: Line
2 : "csv.SCHU.A01007" contient trop de points. Les ids XML ne devraient
pas contenir de points! Les points sont utilisés pour faire référence à
des données d'autres modules, tel que module.reference_id
--
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/811519
Title:
Invalid error message when import failed due to invalid custom ID
format
Status in OpenERP Server:
New
Bug description:
My imports always failed because of my way of building a custom ID, I
was adding "csv.SCH" before each product code to have a unique ID. The
problem is that a product code can have a dot in its name (see .csv
attached) but the big issue here is the invalid error reported:
[2011-07-16 15:36:12,479][online_test1] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/openerp-server-6.0.2/bin/osv/orm.py", line 879, in import_data
return (-1, res, 'Line ' + str(position) +' : ' + str(e), '')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 114: ordinal not in range(128)
The invalid custom ID should be reported properly to help the user to
find the import error.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/811519/+subscriptions
References