Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4739 Vizualizări

It seems to me that to be able to comment on a record in OpenERP v7, you need write access on the model of the record.

For a module I'm working on, I'd like to automatically create a mail.message on behalf of the user, when said user performs some given action. For convenience, that message should be posted on another record, on which only the user's manager should have write access. When I try to do this, I get an Access Denied error.

Is there a clean solution to this issue?

Imagine profil
Abandonează

Portal User Have no rights of modify record ......... then also Portal User can comment [see in image]

image description

Autor

I've had all sorts of problems with Portal Users in a multi company setup...

Cel mai bun răspuns

If the message is an automatic notification, can't you post with superid, and specify the author_id in kwargs of message_post (if you're using it) ?

Imagine profil
Abandonează
Autor

I converted your comment to an answer as it seems a promising way of solving my issue. I'll test and accept it if it works or report back if it does not.

Related Posts Răspunsuri Vizualizări Activitate
1
feb. 25
7725
1
mar. 15
7502
4
mar. 15
9274
2
mar. 15
6245
1
mar. 15
5448