Failed to install module multi_company

Bug #697989 reported by Wei "oldrev" Li
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

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')

Related branches

Revision history for this message
Somesh Khare (somesh.khare) wrote :

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
Revision history for this message
Wei "oldrev" Li (oldrev) wrote :

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".

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: Incomplete → Confirmed
Changed in openobject-addons:
milestone: none → 6.0
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

we should pass currency_id on project.project demo in multi company i think then we can resolve this problem.

Changed in openobject-addons:
status: In Progress → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Wei "oldrev" Li,

I have fixed the problem in lp:~openerp-commiter/openobject-addons/trunk-dev-addons3-ara branch, It will be merged soon with trunk-dev-addons3.

Revision No: 4639
Revision ID: <email address hidden>

Thank you,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Wei "oldrev" Li (oldrev) wrote :

It seems resolved to me.

Thanks for your amazing working.

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.