[MERGE] point_of_sale: fix for a context=None related bug in the pos box wizard

bzr revid: fva@openerp.com-20130320132808-jg19uiktwdigyp07
This commit is contained in:
Frédéric van der Essen 2013-03-20 14:28:08 +01:00
commit a799c9e067
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