[FIX] fetchmail: add api decorator on method connect() to fix issue #980

The method does not follow naming conventions. Therefore the "guessing" api
decorator picks the wrong method wrapper.

(Manual rebase of #1003)
This commit is contained in:
Raphael Collet 2014-07-08 17:03:00 +02:00 committed by Olivier Dony
parent faba7cd5aa
commit 37b82523e8
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ import base64
from openerp import addons
from openerp.osv import fields, osv
from openerp import tools
from openerp import tools, api
from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
@ -129,6 +129,7 @@ openerp_mailgate: "|/path/to/openerp-mailgate.py --host=localhost -u %(uid)d -p
self.write(cr, uid, ids , {'state':'draft'})
return True
@api.cr_uid_ids_context
def connect(self, cr, uid, server_id, context=None):
if isinstance(server_id, (list,tuple)):
server_id = server_id[0]