[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:
parent
74072441cc
commit
ce84d6107f
|
@ -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)]})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue