From 4ae7d5cec61913b7859f604ae13aa2e50acf66b7 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Tue, 16 Jul 2013 18:11:07 +0200 Subject: [PATCH] [WIP] Add function _check_qorder returning True to allow expressions in order of search bzr revid: jco@openerp.com-20130716161107-iw8it4dt6l1k7xc7 --- addons/stock/stock.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 23bf55dcefc..be38513c5ba 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -169,6 +169,13 @@ class stock_quant(osv.osv): # Used for negative quants to reconcile after compensated by a new positive one 'propagated_from_id': fields.many2one('stock.quant', 'Linked Quant', help = 'The negative quant this is coming from'), } + + + def _check_qorder(self, word): + """ + Needs to pass True to allow "expression order" in search + """ + return True def quants_reserve(self, cr, uid, quants, move, context=None): toreserve = []