[FIX]: Corrected minor problems.

bzr revid: uco@tinyerp.com-20101213074049-c32m68722abkpola
This commit is contained in:
uco (OpenERP) 2010-12-13 13:10:49 +05:30
parent 9ff9d1ff04
commit 2b27c8e7b3
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ class event_event(osv.osv):
@param context: A standard dictionary for contextual values
@return: True
"""
if context is None:
context = {}
res = False
if type(ids) in (int, long,):
ids = [ids]

View File

@ -125,7 +125,7 @@ class pos_order(osv.osv):
@return: Dictionary of values """
res = {}
val = None
for order in self.browse(cr, uid, ids, context=context):
for order in self.browse(cr, uid, ids):
cr.execute("SELECT date_validation FROM pos_order WHERE id = %s", (order.id,))
date_p = cr.fetchone()
date_p = date_p and date_p[0] or None