Skip to Content
Menu
This question has been flagged
1 Reply
2704 Views

Hello!


We created automatic actions that send emails when a task is moved from one project stage to the other. However when the email needs to be sent to certain users (we can't find the pattern), we get this message: 
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Activity (mail.activity) Constraint: mail_activity_user_id_fkey 

please notice that at no point we are deleting something, and the automatization is correct because it works perfectly with some users. Are we doing something wrong?

Avatar
Discard
Best Answer

step 1: Active your Debug Mode, login your system press ( Ctrl + K ) search Active Debug Mode and Activate debug mode.

Note: You Should be Become a Superuser so active your super User Reference here:   

https://prnt.sc/oPCeDu2aYzC6


step 2: Go to Technical -emails than delete all emails log.

step 3: Go to Technical -Models and search Mail.activity 

step 4. create menu and select parent menu, Save and refresh your browser . You can see the tree view menu for your selected model under the parent menu which you select parent menu .

step 5: Now you can delete all data for Mail Activity which you address your question.


Here is the Reference Video:



Thanks 

Avatar
Discard
Related Posts Replies Views Activity
2
Jun 23
2583
0
Mar 24
1607
1
Jul 25
1167
2
Mar 25
1429
0
Feb 25
1100