diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2011-04-06 10:07:52 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2011-04-06 10:07:52 +0530 |
| commit | 131daf04aadf22a35f11e81ceb8725debd475f9f (patch) | |
| tree | c4dfaecc4ab5b6c7c51869e57304e8f886cf77ee /addons/fetchmail/fetchmail.py | |
| parent | 6c068b748d723e5fc623e16e8bf50a248443ca15 (diff) | |
[FIX] mail: In email.therad, fixed message_new and message_update method
bzr revid: hmo@tinyerp.com-20110406043752-nqpgav3h6f0rk8v1
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 5749fd423ca..3e479b76e3d 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -82,21 +82,9 @@ class email_server(osv.osv): return False return True - def check_model(self, cr, uid, ids, context = None): - if context is None: - context = {} - current_rec = self.read(cr, uid, ids, context) - if current_rec: - current_rec = current_rec[0] - model_name = self.pool.get('ir.model').browse(cr, uid, current_rec.get('object_id')[0]).model - model = self.pool.get(model_name) - if hasattr(model, 'message_new'): - return True - return False - _constraints = [ (check_duplicate, 'Warning! Can\'t have duplicate server configuration!', ['user', 'password']), - (check_model, 'Warning! Record for selected Model can not be created\nPlease choose valid Model', ['object_id']) + ] def onchange_server_type(self, cr, uid, ids, server_type=False, ssl=False): |
