← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697989] Re: Failed to install module multi_company

 

It seems resolved to me.

Thanks for your amazing working.

-- 
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:
  Fix Committed

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] ERROR: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