From 68fbf7cf44d3310573ee7f7026d1c49e8233a72f Mon Sep 17 00:00:00 2001 From: Chris Biersbach Date: Tue, 5 Mar 2013 14:14:55 +0100 Subject: [PATCH] [FIX] PoS: Fixes a small, context=None related bug in the pos box wizard bzr revid: cbi@openerp.com-20130305131455-5jsn089777xy5dnx --- addons/point_of_sale/wizard/pos_box.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/point_of_sale/wizard/pos_box.py b/addons/point_of_sale/wizard/pos_box.py index 14e653b915c..776d962a3a8 100644 --- a/addons/point_of_sale/wizard/pos_box.py +++ b/addons/point_of_sale/wizard/pos_box.py @@ -31,6 +31,10 @@ class PosBoxIn(PosBox): _inherit = 'cash.box.in' def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): + + if context is None: + context = {} + values = super(PosBoxIn, self)._compute_values_for_statement_line(cr, uid, box, record, context=context) active_model = context.get('active_model', False) or False