Skip to content

[18.0][MIG] autovacuum_message_attachment: Migration to 18.0 - #3158

Merged
OCA-git-bot merged 31 commits into
OCA:18.0from
yankinmax:18.0-mig-autovacuum_message_attachment
Jan 27, 2025
Merged

[18.0][MIG] autovacuum_message_attachment: Migration to 18.0#3158
OCA-git-bot merged 31 commits into
OCA:18.0from
yankinmax:18.0-mig-autovacuum_message_attachment

Conversation

@yankinmax

Copy link
Copy Markdown
Contributor

No description provided.

@yankinmax yankinmax mentioned this pull request Jan 8, 2025
42 tasks

@vvrossem vvrossem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions 🙇

Please squash administrative commits too 🙏

Comment thread autovacuum_message_attachment/models/autovacuum_mixin.py
Comment thread autovacuum_message_attachment/views/rule_vacuum.xml Outdated
florian-dacosta and others added 27 commits January 21, 2025 15:26
Currently translated at 100.0% (50 of 50 strings)

Translation: server-tools-14.0/server-tools-14.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-autovacuum_message_attachment/es_AR/
Selection of attachments through inheriting model can be useful if
we want to purge attachments that are extended through another
model.

For example, shipping.label (from base_delivery_carrier_label)
inherits from ir.attachment but the attachment itself is linked to
the stock.picking model.
By using inheriting_model defined to shipping.label and setting
model_ids to stock.picking, we can safely select the attachments
linked to stock.pickings that are shipping labels and avoid deleting
any picking list or delivery note reports.
Currently translated at 100.0% (55 of 55 strings)

Translation: server-tools-14.0/server-tools-14.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-autovacuum_message_attachment/es_AR/
But allow it only if a file pattern is set, to avoid deleting all orphan attachments are some are auto-generated by Odoo
Currently translated at 67.3% (35 of 52 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/es/
Currently translated at 100.0% (52 of 52 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/es/
Currently translated at 100.0% (52 of 52 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/it/
Currently translated at 100.0% (52 of 52 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/es_AR/
Currently translated at 100.0% (61 of 61 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/it/
ibuioli and others added 3 commits January 21, 2025 15:28
Currently translated at 100.0% (61 of 61 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/es_AR/
Currently translated at 100.0% (61 of 61 strings)

Translation: server-tools-16.0/server-tools-16.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-autovacuum_message_attachment/it/
@yankinmax
yankinmax force-pushed the 18.0-mig-autovacuum_message_attachment branch from 213e6c8 to af7967b Compare January 21, 2025 13:28

@StephaneMangin StephaneMangin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it could be a good approach to increase tests when the coverage increase over time. It's less effort on the long term. But anyway LGTM

Comment thread autovacuum_message_attachment/models/vacuum_rule.py
@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@yankinmax
yankinmax force-pushed the 18.0-mig-autovacuum_message_attachment branch from af7967b to 79ce63a Compare January 21, 2025 14:29
@simahawk

Copy link
Copy Markdown
Contributor

/ocabot migration autovacuum_message_attachment
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jan 27, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-3158-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 2798bd9 into OCA:18.0 Jan 27, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at b57f114. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.