This question has been flagged
4 Replies
4522 Views

Dear all,

I have several salesperson in my Odoo (own server, VPS).

Everyone can create meetings and log every detail of the meeting, but for a few days now only *one* of them is facing this error , whereas they all have the same access rights (their profiles where duplicated) :

- when creating a meeting, this is the error raised (my translation from french) :

The operation can't be done due to the security policy. Please contact the system admin. (Type of document : Attendee information, Operation create).

- when modifying a meeting, no problem.

Here is the server log. Any ideas ?

_________________

2015-07-08 08:22:12,383 394 ERROR baseprod openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 500, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 517, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 283, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 280, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 733, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 376, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/crm/calendar_event.py", line 36, in create
res = super(calendar_event, self).create(cr, uid, vals, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/calendar/calendar.py", line 1589, in create
self.create_attendees(cr, uid, [res], context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/calendar/calendar.py", line 1075, in create_attendees
att_id = self.pool['calendar.attendee'].create(cr, uid, values, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/calendar/calendar.py", line 285, in create
res = super(calendar_attendee, self).create(cr, uid, vals, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 332, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3960, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 464, in new_api
result = method(self._model, cr, uid, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4173, in _create
self.check_access_rule(cr, user, [id_new], 'create', context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3441, in check_access_rule
self._check_record_rules_result_count(cr, uid, sub_ids, returned_ids, operation, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3390, in _check_record_rules_result_count
(self._description, operation))
except_orm: (u'Acc\xe8s refus\xe9', u"L'op\xe9ration demand\xe9e ne peut pas \xeatre effectu\xe9e en raison de la politique de s\xe9curit\xe9. Veuillez contacter votre administrateur syst\xe8me.(Type de document: Attendee information, Op\xe9ration: create)")

Avatar
Discard
Best Answer

Hello Naoli,

The warning says that your user does not have enough priviledge to create the event.

Please check whether the user has been put into the event user/manager group or not.

If he is in group, still the problem persists; you must check the record rule which might be blocking the operation.

Thanks.

Avatar
Discard
Author

Hello Serpent, as I said all the salesperson have the same privileges and there is no problem with others. Moreover, he is set as sales manager and employee as the others. I have only one record rule relevant to "attendee" which is : Details about attendee - Own attendee - Global=false - Domain = [(1,'=',1)], read, write, create, delete = 1

Its a 'calendar.attendee' model! Try to deactivate the record rule and recheck. You wrote 'own attendee' and the domain is allowing all records! Is create=0?