Commit 5c4fef90 by François C.

Fix KeyError 'statement_note'

parent 0fcca2ac
......@@ -70,7 +70,7 @@ class PosOrder(models.Model):
raise UserError(_('You have to open at least one cashbox.'))
statement_note = ''
if data['statement_note'] != '':
if 'statement_note' in data:
statement_note = data['statement_note']
args.update({
'statement_id': statement_id,
......@@ -82,4 +82,4 @@ class PosOrder(models.Model):
statement_line_obj.create(cr, uid, args, context=context)
return statement_id
\ No newline at end of file
return statement_id
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment