From ce84d6107f08a065f4b90cb8dfb7f960e908f312 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 16 Sep 2014 17:55:14 +0200 Subject: [PATCH] [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. --- addons/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index a6131bca31b..d969de76c9e 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -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)]})