[FIX] point_of_sale: set journal as pos payment method on setting journal in the payment methods of a pos config when none is set.

This commit is contained in:
Denis Ledoux 2014-09-16 17:55:14 +02:00
parent 74072441cc
commit ce84d6107f
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ class pos_session(osv.osv):
if not cashids:
cashids = journal_proxy.search(cr, uid, [('journal_user','=',True)], context=context)
journal_proxy.write(cr, uid, cashids, {'journal_user': True})
jobj.write(cr, uid, [pos_config.id], {'journal_ids': [(6,0, cashids)]})