Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5912 Переглядів

I would like to send a notification message when the responsible user is changed in a Project Issue.

I can see that the project.issue model has a _track attribute that defines what fields trigger notification messages.

But how can I add the user_id field to the tracked fields? Does that need a custom module to be built? What should that module do?

Аватар
Відмінити
Найкраща відповідь

Hi;

I don't think that "_track" can be used for this goal; cause it's related to the object "project_issue" (status changes: new, closed, started, ...).

But when looking in the code (project_issue.py file) you can see that there is a "track_visibility" attribute for the field user_id, which i think, can be used to achieve this goal.

To Test and confirm !: Maybe this can be simply achieved, by subscribing users to "All Messages" in the User Preferences.

Аватар
Відмінити
Найкраща відповідь

How about message_send method on write?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
5
січ. 24
14862
2
бер. 15
11537
1
бер. 15
4226
3
бер. 15
10119
0
бер. 15
3592