[FIX] PoS: Fixes a small, context=None related bug in the pos box wizard

bzr revid: cbi@openerp.com-20130305131455-5jsn089777xy5dnx
This commit is contained in:
Chris Biersbach 2013-03-05 14:14:55 +01:00
parent 2e52316b89
commit 68fbf7cf44
1 changed files with 4 additions and 0 deletions

View File

@ -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