From 209257bdf5ed6d168cd89b4d26ff018a6dfb244b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Gonz=C3=A1lez?= Date: Wed, 28 Sep 2022 21:01:44 +0000 Subject: [PATCH] [FIX] attachment_unindex_content: unsupported param on _index method Odoo introduced a new param `checksum` to the method `_index` on the attachment model [1]. Since that param is not supported on this model, the following error is now being raised: TypeError: _index() got an unexpected keyword argument 'checksum' [1] https://github.com/odoo/odoo/commit/3d59cc84 --- attachment_unindex_content/__manifest__.py | 6 +++++- attachment_unindex_content/models/ir_attachment.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/attachment_unindex_content/__manifest__.py b/attachment_unindex_content/__manifest__.py index 77e25a633..9dbc3cd7c 100644 --- a/attachment_unindex_content/__manifest__.py +++ b/attachment_unindex_content/__manifest__.py @@ -7,7 +7,11 @@ "version": "14.0.1.0.0", "author": "Vauxoo, Odoo Community Association (OCA)", "website": "https://github.com/OCA/server-tools", - "maintainers": ["moylop260", "ebirbe"], + "maintainers": [ + "moylop260", + "ebirbe", + "luisg123v", + ], "license": "AGPL-3", "category": "Tools", "depends": ["base"], diff --git a/attachment_unindex_content/models/ir_attachment.py b/attachment_unindex_content/models/ir_attachment.py index 38ab576fb..169f4fe60 100644 --- a/attachment_unindex_content/models/ir_attachment.py +++ b/attachment_unindex_content/models/ir_attachment.py @@ -9,5 +9,5 @@ class IrAttachment(models.Model): _inherit = "ir.attachment" @api.model - def _index(self, bin_data, mimetype): + def _index(self, *args, **kwargs): return False