Commit Graph

10 Commits (b99bf33ac1ef1288678b4d8d9c96f5f7fcae2e0f)

Author SHA1 Message Date
GabbasovDinar 5c03d4e563
[MIG] autovacuum_message_attachment: Migration to 17.0 2025-02-11 16:25:51 +05:00
GabbasovDinar 338a478056
[IMP] autovacuum_message_attachment: pre-commit auto fixes 2025-02-11 16:25:51 +05:00
Florian da Costa d425ce2c0c
[IMP] Allow to delete attachment without res_model
But allow it only if a file pattern is set, to avoid deleting all orphan attachments are some are auto-generated by Odoo
2025-02-11 16:24:09 +05:00
Florian da Costa 6a6401327f
[MIG] autovacuum_message_attachment : migrate to v16 2025-02-11 16:24:08 +05:00
Akim Juillerat 0b575e5959
Add selection of attachments through inheriting model
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.
2025-02-11 16:24:08 +05:00
hkpatel e78e288d28
[IMP] autovacuum_message_attachment: black, isort, prettier 2025-02-03 13:59:05 +05:00
Enric Tobella b660e0e8e2
[MIG] autovacuum_message_attachment: Migration to 13.0 2025-02-03 13:59:04 +05:00
Enric Tobella 3fed2c1eb6
[IMP] autovacuum_message_attachment: black, isort, prettier 2025-02-03 13:59:04 +05:00
Enric Tobella acb678973f
[REF] autovacuum_message_attachment: Improve the way we manage domains 2025-02-03 13:59:04 +05:00
Florian da Costa 23ab41df79
Add possibility to delete attachments 2025-02-03 13:59:03 +05:00