Write access is required for creating an object with a chatter

Bug #1204833 reported by Karel Marissens
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP Publisher's Warranty Team

Bug Description

When creating an object with a user that only has 'create' access for the relevant model, the creation fails with a 'no access to modify' exception if the model uses a chatter. Example model: hr.applicant.

This behavior changed recently, somewhere between these 2 versions:
- Version with the problem: 7.0-20130723-231040
- Version without the problem: 7.0-20130526-231028

Relevant lines in mail_message.py:
724 if operation in ['create', 'write', 'unlink']:
725 model_obj.check_access_rights(cr, uid, 'write') <-- THIS ONE
726 model_obj.check_access_rule(cr, uid, mids, 'write', context=context)

Tags: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello Karel Marissens,

Martin has fixed and merged this issue in stable 7.0 on revision 9374.

http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9374#mail/mail_message.py

Thanks.

Changed in openobject-addons:
status: New → Fix Released
Changed in openobject-addons:
importance: Undecided → Low
milestone: none → 7.0
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.