← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697989] Re: Failed to install module multi_company

 

Hello Wei "oldrev" Li,

I have checked this with the latest code but unfortunately I was uanble
to meet with the error. I can install the module "multi_company" with
the demo data.

I am interested to know about the steps which you followed during the
installation.

Thank you.

** 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/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] 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