with account_invoice_layout multi-company, non-product lines can get a wrong account_id and not be shown

Bug #784499 reported by Leonardo Pistone
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

affects v6 and trunk

If you create an invoice_line with account_invoice_layout installed, the method

http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/head:/account_invoice_layout/account_invoice_layout.py#L167

chooses an account_id for decorative invoice.line's. That could end up to belong to another company, or anyway be inaccessible to the current user. The result is that the user sees all invoice lines disappear.

thanks!

Tags: maintenance

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Leonardo,

   It has been fixed and improved by revision 4595 <email address hidden> in the branch lp:~openerp-community/openobject-addons/lpistone_6.0_lp784499.

   It will be merged soon in the stable.

   Thanks a lot for pointing out towards such an issue and proposing the fix. We really do appreciate your efforts.

Thanks.

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision <email address hidden> in stable 6.0 under revision 4617.

Thanks.

Changed in openobject-addons:
status: Fix Committed → Fix Released
milestone: none → 6.0.3
Revision history for this message
Thierry (tboulogne) wrote :

Hello,

I get web client 6.0.2 rev 4660, and i get this error only from the web client (From gtk client, it rocks.) when i try to validate na invoice payment.

Could you help please :

Exact error : Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Invoice).

Thanks

Thierry

Revision history for this message
Leonardo Pistone (lepistone) wrote :

Thierry,

that seems to be a different problem, as that bug covers a situation where an account -- not as invoice as for your case -- cannot be read. So please investigate further of post a new bug.

Still, if you have the problem discussed here (which doesn't seem to be your case), please note that the fix has been released on the v6 branch after 6.0.2, so it is not on 6.0.2 and will be in 6.0.3.

best

Revision history for this message
Lorenzo Battistini (elbati) wrote :
Revision history for this message
Leonardo Pistone (lepistone) wrote :
Changed in openobject-addons:
status: Fix Released → In Progress
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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