[Trunk/7.0] can not validate invoice in multi-company
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team | |||
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team | |||
OpenUpgrade Server | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Stefan Rijnhart (Opener) |
Bug Description
Hello,
When I tried to validate an invoice in multi company mode I have an exception "Can not read company".
The exception is risen by this line:
company_currency = inv.company_
The mutli company setting are correct (It will be proven below) but what is strange is that in pdb:
pp inv.company_id
browse_
It is ok but:
pp inv.company_id.name
2013-01-31 09:57:31,983 8617 WARNING None openerp.osv.orm: Access Denied by record rules for operation: read, uid: 5, model: res.company ..
It raise exception.
More fun :
pp self.pool[
u'EUR'
No exception…
This one is tricky isnt'it ?
Regards
Nicolas
Related branches
- Olivier Dony (Odoo): Approve
- Nicolas Bessi - Camptocamp: Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 58 lines (+6/-7)1 file modifiedaccount/account_invoice.py (+6/-7)
- Olivier Dony (Odoo): Approve
- Nicolas Bessi - Camptocamp: Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 1425 lines (+9/-174)3 files modifiedopenerp/addons/base/currency_data.xml (+0/-174)
openerp/addons/base/res/res_currency.py (+1/-0)
openerp/addons/base/security/base_security.xml (+8/-0)
- Olivier Dony (Odoo): Needs Fixing
-
Diff: 35 lines (+0/-7)2 files modifiedopenerp/addons/base/base_data.xml (+0/-6)
openerp/addons/base/currency_data.xml (+0/-1)
- Holger Brunn (Therp): Approve (code review)
-
Diff: 27 lines (+13/-0)1 file modifiedopenerp/addons/base/migrations/7.0.1.3/post-migration.py (+13/-0)
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-server: | |
status: | New → In Progress |
no longer affects: | ocb-server/7.0 |
no longer affects: | ocb-server |
no longer affects: | ocb-addons/7.0 |
no longer affects: | ocb-addons |
I think it's tricky to reproduce. :)
Is it a rapid way to setup and reproduce this from a new database ?
Think uid is not correctly passed through metod() ...