bzr revid: jvo@tinyerp.com-20100531124648-0sweu1d8yvtznyst
This commit is contained in:
Jay (Open ERP) 2010-05-31 18:16:48 +05:30
parent f25789bbfc
commit f1274a2a72
2 changed files with 4 additions and 4 deletions

View File

@ -27,8 +27,8 @@
* IMAP / IMAP with SSL
* POP / POP with SSL
* SMTP / SMTP with TLS
* ACL basd access polocy
* Queing and History for Emails
* ACL based access policy
* Queueing and History for Emails
* Easy Integration with any Module""",
'author': 'Tiny',
'website': 'http://www.openerp.com',

View File

@ -30,7 +30,7 @@ class one2many_domain(fields.one2many):
user=user, context=context)
def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None):
if not context:
if context is None:
context = {}
res = {}
msg_obj = obj.pool.get('mailgate.message')
@ -65,7 +65,7 @@ class mailgate_thread(osv.osv):
@param email: Email address if any
@param details: Details of case history if any
@param context: A standard dictionary for contextual values"""
if not context:
if context is None:
context = {}
# The mailgate sends the ids of the cases and not the object list
if all(isinstance(case_id, (int, long)) for case_id in cases) and context.get('model'):