summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-12-13 13:10:49 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-12-13 13:10:49 +0530
commit2b27c8e7b353ea53e9b3480efdf68cde538e5e95 (patch)
treecb0756b3bff82db3f4dbd137d79461026dc07670
parent9ff9d1ff04586a84582fa5feef720a1c773b4ebd (diff)
[FIX]: Corrected minor problems.
bzr revid: uco@tinyerp.com-20101213074049-c32m68722abkpola
-rw-r--r--addons/event/event.py2
-rw-r--r--addons/point_of_sale/point_of_sale.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/event/event.py b/addons/event/event.py
index b18f7618985..02fe6ff6a0c 100644
--- a/addons/event/event.py
+++ b/addons/event/event.py
@@ -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]
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py
index 71333fc7c9d..fa2de26f4e8 100644
--- a/addons/point_of_sale/point_of_sale.py
+++ b/addons/point_of_sale/point_of_sale.py
@@ -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