From 6f8efea28cd29fd973ac6a50d7b93f0d73a725c6 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 16 Jun 2017 15:50:44 +0200 Subject: [PATCH 1/2] [FIX] requirements: bump up recommended psycopg2 version Version 2.7.1 is not yet available in most distributions, but is now considered the recommended version. Odoo will work just fine with any psycopg2 version >= 2.2, though. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8505a7dc2b5..85cce76bad0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,7 @@ mock==1.0.1 passlib==1.6.2 psutil==2.1.1 psycogreen==1.0 -psycopg2==2.5.3 +psycopg2==2.7.1 pyPdf==1.13 pydot==1.0.2 pyparsing==1.5.7 From 27a47eb3c3d4b79d8fffb6df66f107a993ddf805 Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida Date: Mon, 19 Jun 2017 12:32:49 +0100 Subject: [PATCH 2/2] [FIX] stock: add missing context method check and run have a context argument that was lost Closes #17683 --- addons/stock/procurement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 48c929deb48..3c66690a266 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -369,8 +369,8 @@ class procurement_order(osv.osv): proc_id = procurement_obj.create(cr, uid, self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context), context=context) - self.check(cr, uid, [proc_id]) - self.run(cr, uid, [proc_id]) + self.check(cr, uid, [proc_id], context=context) + self.run(cr, uid, [proc_id], context=context) if use_new_cursor: cr.commit() except OperationalError: