Skip to content

[fork-CI] [19.0][MIG] autovacuum_message_attachment: Migration to 19.0#12

Draft
dnplkndll wants to merge 76 commits into
19.0from
19.0-mig-autovacuum_message_attachment
Draft

[fork-CI] [19.0][MIG] autovacuum_message_attachment: Migration to 19.0#12
dnplkndll wants to merge 76 commits into
19.0from
19.0-mig-autovacuum_message_attachment

Conversation

@dnplkndll
Copy link
Copy Markdown

Migration of autovacuum_message_attachment from 18.0 to 19.0.

Fork-CI validation PR. Will be closed once upstream PR against OCA/server-tools is
opened from the same branch.

florian-dacosta and others added 30 commits May 29, 2026 20:06
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/
oca-ci and others added 27 commits May 29, 2026 20:06
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-autovacuum_message_attachment/
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
@dnplkndll dnplkndll force-pushed the 19.0-mig-autovacuum_message_attachment branch from 6a8041d to bffadbe Compare May 30, 2026 00:25
- odoo.osv.expression.AND → odoo.fields.Domain.AND (M08).
- One2many auto_join → bypass_search_access (19.0 field-attribute rename).
- safe_eval(): drop removed locals_dict kwarg, pass the namespace as the
  context positional arg (M28) — the autovacuum domain eval crashed otherwise.
- Drop the manual registry enter/leave_test_mode + test_cr env rebuild in the
  test: 19.0 TransactionCase enters test mode at class scope.
@dnplkndll dnplkndll force-pushed the 19.0-mig-autovacuum_message_attachment branch from bffadbe to 96a1eea Compare May 30, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.