[18.0][MIG] autovacuum_message_attachment: Migration to 18.0 - #3158
Conversation
vvrossem
left a comment
There was a problem hiding this comment.
Some suggestions 🙇
Please squash administrative commits too 🙏
… it is already present in other models
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/
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/
213e6c8 to
af7967b
Compare
StephaneMangin
left a comment
There was a problem hiding this comment.
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
|
This PR has the |
af7967b to
79ce63a
Compare
|
/ocabot migration autovacuum_message_attachment |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at b57f114. Thanks a lot for contributing to OCA. ❤️ |
No description provided.