openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22665
[Bug 1111298] [NEW] [7.0] can not validate invoice in multi-company
Public bug reported:
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_id.currency_id.id in account_invoice.py => action_move_create
The mutli company setting are correct (It will be proven below) but
what is strange is that in pdb:
pp inv.company_id
browse_record(res.company, 3)
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['res.company'].browse(cr, uid, 3).currency_id.name
u'EUR'
No exception…
This one is tricky isnt'it ?
Regards
Nicolas
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1111298
Title:
[7.0] can not validate invoice in multi-company
Status in OpenERP Addons (modules):
New
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_id.currency_id.id in account_invoice.py => action_move_create
The mutli company setting are correct (It will be proven below) but
what is strange is that in pdb:
pp inv.company_id
browse_record(res.company, 3)
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['res.company'].browse(cr, uid, 3).currency_id.name
u'EUR'
No exception…
This one is tricky isnt'it ?
Regards
Nicolas
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1111298/+subscriptions
Follow ups
-
[Bug 1111298] Re: [Trunk/7.0] can not validate invoice in multi-company
From: Serpent Consulting Services, 2013-08-29
-
[Bug 1111298] Re: [Trunk/7.0] can not validate invoice in multi-company
From: Stefan Rijnhart (Therp), 2013-07-28
-
[Bug 1111298] Re: [Trunk/7.0] can not validate invoice in multi-company
From: Tung Tran Thanh, 2013-07-23
-
[Bug 1111298] Re: [Trunk/7.0] can not validate invoice in multi-company
From: Nicolas Bessi - Camptocamp, 2013-02-13
-
[Bug 1111298] Re: [7.0] can not validate invoice in multi-company
From: Amit Parik (OpenERP), 2013-02-12
-
[Bug 1111298] Re: [7.0] can not validate invoice in multi-company
From: Amit Parik (OpenERP), 2013-02-12
-
[Bug 1111298] Re: [7.0] can not validate invoice in multi-company
From: Nicolas Bessi - Camptocamp, 2013-02-12
-
[Bug 1111298] Re: [7.0] can not validate invoice in multi-company
From: Nicolas Bessi - Camptocamp, 2013-01-31
-
[Bug 1111298] Re: [7.0] can not validate invoice in multi-company
From: Nicolas JEUDY, 2013-01-31
-
[Bug 1111298] [NEW] [7.0] can not validate invoice in multi-company
From: Nicolas Bessi - Camptocamp, 2013-01-31
References