[FIX] _register_hooks has 4 parms in 6.1.

This commit is contained in:
Ronald Portier 2017-07-21 11:07:08 +02:00
parent e2d23b7c80
commit 2160cf340e
No known key found for this signature in database
GPG Key ID: A181F8124D7101D3

View File

@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__)
class IrAttachment(orm.Model): class IrAttachment(orm.Model):
_inherit = 'ir.attachment' _inherit = 'ir.attachment'
def _register_hook(self, cr): def _register_hook(self, cr, uid, ids=None):
"""Only register our indexer if module is installed.""" """Only register our indexer if module is installed."""
import StringIO import StringIO
try: try: