From 2160cf340e673ba89f9bab37df6e7eb153d58f4d Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Fri, 21 Jul 2017 11:07:08 +0200 Subject: [PATCH] [FIX] _register_hooks has 4 parms in 6.1. --- document_rtf_index/models/ir_attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document_rtf_index/models/ir_attachment.py b/document_rtf_index/models/ir_attachment.py index 5ebd33cc..8251a58b 100644 --- a/document_rtf_index/models/ir_attachment.py +++ b/document_rtf_index/models/ir_attachment.py @@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__) class IrAttachment(orm.Model): _inherit = 'ir.attachment' - def _register_hook(self, cr): + def _register_hook(self, cr, uid, ids=None): """Only register our indexer if module is installed.""" import StringIO try: