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
93047f2c49
[FIX] autovacuum_message_attachment : fix inheriting_model feature
2025-02-11 16:25:50 +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
Akim Juillerat
cfab415c48
Improve building of domain through osv.expression
2025-02-11 16:24:08 +05:00
hkpatel
ef9bce6bc1
[MIG] autovacuum_message_attachment: Migration to 14.0
2025-02-03 13:59:05 +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
c6365051ba
[FIX] autovacuum_message_attachment: The field name cannot be used as it is already present in other models
2025-02-03 13:59:04 +05:00
Florent de Labarre
4dea925855
[FIX] autovacuum_message_attachment : wrong message formating
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
Florian da Costa
22c6f317df
Migrate autovacuum_mail_message to version 12 and rename it
2025-02-03 13:59:01 +05:00