c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22100
[Bug 760635] Re: [6.0.2] Res_lang_code_uniq problem
Hello,
I have created new DB easily and also installed base_contact module successfully.
So,Would you please provide your side configuration for reproducing this issue.
Thanks.
** Changed in: openobject-addons
Status: New => Incomplete
--
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/760635
Title:
[6.0.2] Res_lang_code_uniq problem
Status in OpenERP Modules (addons):
Incomplete
Bug description:
Hello all,
I just made a fresh install of the server and database. I then tried to install the module base_contact and here's what I get :
[2011-04-14 14:46:15,069][mwp_04] INFO:init:module base_contact: loading test/base_contact00.yml
[2011-04-14 14:46:15,115][mwp_04] ERROR:db.cursor:bad query: insert into "res_lang" (id,"date_format","direction","code","name","thousands_sep","translatable","time_format","decimal_point","active","grouping",create_uid,create_date) values (3,E'%m/%d/%Y',E'ltr',E'fr_BE',E'French',E',',E'False',E'%H:%M:%S',E'.',E'True',E'[]',1,now())
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 131, in execute
res = self._obj.execute(query, params)
IntegrityError: ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « res_lang_code_uniq »
Traceback (most recent call last):
File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
msg = self.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
return fmt.format(record)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 182, in format
return DBFormatter.format(self, record)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 176, in format
return logging.Formatter.format(self, record)
File "/usr/lib/python2.6/logging/__init__.py", line 439, in format
s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 27: ordinal not in range(128)
[2011-04-14 14:46:15,134][mwp_04] ERROR:test:Tests failed to execute in module base_contact
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 670, in load_test
_load_data(cr, module_name, id_map, mode, 'test')
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 693, in _load_data
tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 794, in yaml_import
yaml_interpreter.process(yaml_string)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 729, in process
self._process_node(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 742, in _process_node
self.process_record(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 322, in process_record
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_model.py", line 691, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 3647, in create
cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 78, in wrapper
return f(self, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 131, in execute
res = self._obj.execute(query, params)
IntegrityError: ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « res_lang_code_uniq »
References