Skip to content

[18.0][ADD] mail_activity_restrict: Option to make activities readonly when user is not assigend#164

Open
CRogos wants to merge 2 commits into
OCA:18.0from
c4a8-odoo:18.0-add-mail_activity_restrict
Open

[18.0][ADD] mail_activity_restrict: Option to make activities readonly when user is not assigend#164
CRogos wants to merge 2 commits into
OCA:18.0from
c4a8-odoo:18.0-add-mail_activity_restrict

Conversation

@CRogos
Copy link
Copy Markdown
Contributor

@CRogos CRogos commented Mar 27, 2026

This module gives you the option to restrict the write access on certain activity types. e.g. if activities need to be done by certain users/teams.

When this option is activated on an activity type, and the activity is not assigned to you, the edit options are hidden.
image

When the activity is assigned to you, it is still visible:
image

@CRogos CRogos changed the title [18.0][ADD] mail_activity_restrict [18.0][ADD] mail_activity_restrict: Option to make activities readonly when user is not assigend Mar 27, 2026
@CRogos CRogos force-pushed the 18.0-add-mail_activity_restrict branch from 2cedb27 to 5877407 Compare March 31, 2026 16:43
@CRogos CRogos force-pushed the 18.0-add-mail_activity_restrict branch from 5877407 to 2db4e6d Compare March 31, 2026 17:14
@CRogos
Copy link
Copy Markdown
Contributor Author

CRogos commented May 4, 2026

@NICO-SOLUTIONS what do you think of this?

@NICO-SOLUTIONS
Copy link
Copy Markdown
Member

@CRogos
I like the idea to prevent activities from being edited or marked as done/cancelled by different users. 👍
I’ll take a closer look at this in more detail later.

@NICO-SOLUTIONS
Copy link
Copy Markdown
Member

@CRogos
So far, this looks good—just a quick suggestion/question:

It might make sense to restrict editing of activities to the assigned user, and possibly also to the person who created the activity.

In practice, it happens quite often that someone creates an activity for someone else and later realizes that changes are needed for various reasons. In those cases, it would be helpful if the creator could also edit it.

What do you think?

@CRogos
Copy link
Copy Markdown
Contributor Author

CRogos commented May 5, 2026

hmm... I understand your use case.

In our case, the activity is automatically created, when an equipment is returned. Currently the creator is the person who triggers the workflow (returner), but I assume I can adapt the process that the activity creator can be changed to odoo-bot, because the returner should not be able to reset the activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants