-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] autovacuum_message_attachment: Migration to 17.0
- Loading branch information
1 parent
65e1d1d
commit 1f5f226
Showing
9 changed files
with
214 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,51 @@ | ||
- Go to the menu configuration =\> Technical =\> Email =\> Message And | ||
Attachment Vacuum Rules | ||
- Add the adequates rules for your company. On each rule, you can | ||
indicate the models, type and subtypes for which you want to delete | ||
the messages, along with a retention time (in days). Or for | ||
attachment, you can specify a substring of the name. | ||
- Activate the cron AutoVacuum Mails and Messages and/or AutoVacuum | ||
Attachments | ||
|
||
It is recommanded to run it frequently and when the system is not very | ||
loaded. (For instance : once a day, during the night.) | ||
## To Create AutoVacuum Rules | ||
|
||
Go to Settings -\> Technical -\> Email -\> Message And Attachment Vacuum Rules | ||
- Press the "New" button to add a new rule | ||
|
||
## To Configure the Attachment AutoVacuum Rule | ||
- **Name:** Set the name of the rule | ||
- **Type:** Select type "Attachment" | ||
- **Company:** Select a Company | ||
- **Retention Time:** Set Retention Time in days | ||
- **Filename Pattern:** Set file name pattern (for example ".png") | ||
- **Inherited Model:** Set the Inherited Model (optional) | ||
- **Model:** Select the Model to apply the rule to | ||
- **Model Filter Domain:** Specify the domain for the model to select particular records only | ||
- **Description:** Add a description for the rule set (optional) | ||
|
||
![](../static/description/Attachment_Vacuum_Rule.png) | ||
|
||
## To Configure the Message AutoVacuum Rule | ||
- **Name:** Set the name of the rule | ||
- **Type:** Select type "Message" | ||
- **Company:** Select a Company | ||
- **Retention Time:** Set Retention Time in days | ||
- **Message Type:** Select the Message Type to apply the rule to: | ||
- **All:** Apply to all messages | ||
- **Comment:** Apply to comments | ||
- **System Notification:** Apply to system notifications | ||
- **User Specific Notification:** Apply to user specific notifications | ||
- **Empty Subtype:** Apply to messages with no subtype | ||
- **Message Subtype:** Press the "Add line" button and select the Chatter Message Subtype to apply the rule to | ||
- **Model:** Select the Model to apply the rule to | ||
- **Message Filter Domain:** Specify the domain for the model to select particular records only | ||
- **Description:** Add a description for the rule set (optional) | ||
|
||
![](../static/description/Message_Vacuum_Rule.png) | ||
|
||
## To Configure AutoVacuum Cron Jobs | ||
|
||
Note: The AutoVacuum Mails and Messages and AutoVacuum Attachments scheduled actions are created by default and need to be activated. | ||
|
||
Go to Settings -\> Technical -\> Automation -\> Scheduled Actions | ||
- Activate the scheduled actions needed (AutoVacuum Mails and Messages and/or AutoVacuum Attachments) | ||
- Go to Actions -> Unarchive or toggle the Active status of the scheduled action | ||
- Select a record and specify the frequency of the cron job if needed | ||
|
||
![](../static/description/AutoVacuum_Cron_Jobs.png) | ||
|
||
![](../static/description/AutoVacuum_Cron_Jobs2.png) | ||
|
||
|
||
Note: It is recommended to run it frequently and when the system is not very loaded. (For instance: once a day, during the night.) |
Binary file added
BIN
+232 KB
autovacuum_message_attachment/static/description/Attachment_Vacuum_Rule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 KB
autovacuum_message_attachment/static/description/AutoVacuum_Cron_Jobs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+143 KB
autovacuum_message_attachment/static/description/AutoVacuum_Cron_Jobs2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+132 KB
autovacuum_message_attachment/static/description/Message_Vacuum_Rule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters