dead reference to sales order in opportunity causes permission error
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
- Vo Minh Thu (community): Needs Fixing
- Naresh(OpenERP) (community): Approve
-
Diff: 26 lines (+13/-0)1 file modifiedopenerp/osv/fields.py (+13/-0)
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 |
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,