[FIX] POS - Write the state to Paid before the create_picking. It's allow to stay in a valid state in workflow. And let the current stock picking out to 'Ready for delivery'

bzr revid: jke@openerp.com-20140507120144-m177kqxa3fbfl37r
This commit is contained in:
Kersten Jeremy 2014-05-07 14:01:44 +02:00
parent 0f9917c9a3
commit ada19d175d
1 changed files with 1 additions and 1 deletions

View File

@ -1167,8 +1167,8 @@ class pos_order(osv.osv):
return self.write(cr, uid, ids, {'state': 'payment'}, context=context)
def action_paid(self, cr, uid, ids, context=None):
self.create_picking(cr, uid, ids, context=context)
self.write(cr, uid, ids, {'state': 'paid'}, context=context)
self.create_picking(cr, uid, ids, context=context)
return True
def action_cancel(self, cr, uid, ids, context=None):