diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-13 09:57:04 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-13 09:57:04 +0700 |
| commit | 1e91160f83aaad30b424439a50065f20b84927f7 (patch) | |
| tree | 5238dc54b837e1e304f086ed9ec810b06e9d683c /indoteknik_custom/models/ir_attachment.py | |
| parent | b7c17bb842fb1ec29ae8ae98261c15061141739e (diff) | |
override ir attachment for exclude gc filestore
Diffstat (limited to 'indoteknik_custom/models/ir_attachment.py')
| -rw-r--r-- | indoteknik_custom/models/ir_attachment.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indoteknik_custom/models/ir_attachment.py b/indoteknik_custom/models/ir_attachment.py new file mode 100644 index 00000000..278eb938 --- /dev/null +++ b/indoteknik_custom/models/ir_attachment.py @@ -0,0 +1,12 @@ +from odoo import api, fields, models, _ +import logging + +_logger = logging.getLogger(__name__) + + +class Attachment(models.Model): + _inherit = 'ir.attachment' + + @api.autovacuum + def _gc_file_store(self): + _logger.info("filestore gc checked, removed - override")
\ No newline at end of file |
