[FIX]: Corrected minor problems.
bzr revid: uco@tinyerp.com-20101213074049-c32m68722abkpola
This commit is contained in:
parent
9ff9d1ff04
commit
2b27c8e7b3
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue