c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11306
[Bug 697989] Re: Failed to install module multi_company
Hello:
thanks for your quick reply, I did the following steps:
1. I created a new database with module base and demo data.
2. I changed the default currency type from EUR to CNY.
3. Install the module "multi_company".
--
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/697989
Title:
Failed to install module multi_company
Status in OpenObject Addons Modules:
Incomplete
Bug description:
version 6.0RC2
the installing process raised an exception when it try to load demo data:
"""
ValidateError
Error occurred while validating the field(s) currency_id,company_id: Error! The currency has to be the same as the currency of the selected company
"""
Console output:
pany: loading multi_company_demo.xml
[2011-01-06 15:32:10,000][oe6test1] [1;31m[1;49mERROR[0m:tools.convert.xml_im
port:Parse error in file:///D:/sandbox/openerp6/server/bin/addons/multi_company/
multi_company_demo.xml:516:
<record id="project.project_project_9" model="project.project">
<field name="company_id" ref="res_company_oerp_be"/>
</record>
Traceback (most recent call last):
File "D:\sandbox\openerp6\server\bin\tools\convert.py", line 865, in parse
self._tags[rec.tag](self.cr, rec, n)
File "D:\sandbox\openerp6\server\bin\tools\convert.py", line 832, in _tag_reco
rd
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.mo
dule, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoup
date(data_node), mode=self.mode, context=rec_context )
File "D:\sandbox\openerp6\server\bin\addons\base\ir\ir_model.py", line 483, in
_update
model_obj.write(cr, uid, [res_id], values, context=context)
File "D:\sandbox\openerp6\server\bin\osv\orm.py", line 3406, in write
self.pool.get(table).write(cr, user, nids, v, context)
File "D:\sandbox\openerp6\server\bin\osv\orm.py", line 3408, in write
self._validate(cr, user, ids, context)
File "D:\sandbox\openerp6\server\bin\osv\orm.py", line 934, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) cur
rency_id,company_id: Error! The currency has to be the same as the currency of t
he selected company')
References