summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/ir_attachment.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-13 16:23:22 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-13 16:23:22 +0700
commit47be053bafe8e212e7c98332666819e65428c4e3 (patch)
tree19a7c4545989ff6a5d85968090346fdd4e268706 /indoteknik_custom/models/ir_attachment.py
parentc4b6e2d594b8cbd7d424673d04741a1a4cb2ff81 (diff)
parent3acb428bfa048acb6d4d2d57e9d8720e77d08075 (diff)
Merge commit '3acb428bfa048acb6d4d2d57e9d8720e77d08075' into feature/rest-api
# Conflicts: # indoteknik_custom/models/product_template.py
Diffstat (limited to 'indoteknik_custom/models/ir_attachment.py')
-rw-r--r--indoteknik_custom/models/ir_attachment.py12
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