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: