dead reference to sales order in opportunity causes permission error

Bug #783961 reported by Christophe Combelles
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

Summary : I get a dead reference to a sales order after deleting the sales order created from an opportunity. It makes the opportunity list unusable on the GTK client, and a dead reference on the web client.

Here is how to reproduce on 6.0.2 with the GTK client :

- Install a fresh database with demo data, Extended interface, CRM, and Sales Management
- put the "demo" user in the "Sales Manager" group
- connect as demo user
- change the interface to "Extended" in the prefs
- Create and save a new opportunity.
- click on "Convert to quote", choose any customer
- Now delete the newly created Sales Order.

=> On the GTK client I get this message (for ex. when returning to the opportunity list).

AccessError

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

=> On the web client I get this in the Extra Info tab of the opportunity: Reference : == Access Denied ==

Related branches

Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello Christophe Combelles,

Thanks for reporting.

It has been fixed at lp:~openerp-dev/openobject-server/trunk-bug-783961-ysa and it will be merge soon to the trunk server.

Thanks,

Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Vo Minh Thu (thu) wrote :

The fix is available in trunk at revision 3725 (revision-id: <email address hidden>).
Thanks a lot for the bug report!

Changed in openobject-server:
status: Fix Committed → Fix Released
Revision history for this message
Christophe Combelles (ccomb) wrote :

I still get this bug on 6.0.3. Shouldn't it be merged to the 6.0 branch as well ??

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.