[18.0][IMP] edi_core_oca: add backend-controlled auto-cleanup for exchange records#233
[18.0][IMP] edi_core_oca: add backend-controlled auto-cleanup for exchange records#233Ricardoalso wants to merge 1 commit intoOCA:18.0from
Conversation
ca3e2f9 to
90cc5e6
Compare
etobella
left a comment
There was a problem hiding this comment.
If we want to do that, we need to at least add a way to decide which records can be archived. IMO, we should add a flag on exchange type or backends for that.
e551b22 to
9d3fe03
Compare
Hey @etobella, thanks for the early review, you were too fast for me! 😄 Following @simahawk’s suggestion, I added the configuration to the edi.backend model and kept them disabled by default. |
You can still edit the cron to search for records by specific type. |
…records Add configurable auto-archiving and auto-deletion of EDI exchange records per backend. This backend-specific settings that can be managed individually. Changes: - Add "Auto Cleanup" tab in backend form view for easy configuration - Add archive cron job that respect backend-specific retention policies - Add delete cron job that respect backend-specific retention policies - Add "Archived" filter to exchange record search view Benefits: - Each backend can have different retention policies - Setting fields to 0 (default value) disables the respective cleanup behavior - More flexible data retention management - Better control over storage and performance optimization The cron jobs iterate through backends with configured retention settings, applying appropriate cutoff values. chore(edi_core_oca): update documentation
b96888d to
3183ca6
Compare
This pull request introduces automated maintenance for EDI exchange records. The most significant changes are the addition of scheduled jobs to archive and delete old EDI records and the introduction of an
activeflag for EDI records.Changes:
Benefits:
The cron jobs iterate through backends with configured retention
settings, applying appropriate cutoff values.