From fc7a31f84282db827b50b3e40f4d5d0f15c818dd Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 12 May 2014 14:56:30 +0200 Subject: [PATCH] [FIX] ir_ui_view: remove undetermist order on search for views as the _order on the model is more specific (opw 607262) This was problematic on some views where two views with the same priority could be chosen depending on the server, postgresql version and the age of the captain --- openerp/addons/base/ir/ir_ui_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/ir/ir_ui_view.py b/openerp/addons/base/ir/ir_ui_view.py index 9bc9ad36b1d..3bbb87eefea 100644 --- a/openerp/addons/base/ir/ir_ui_view.py +++ b/openerp/addons/base/ir/ir_ui_view.py @@ -236,7 +236,7 @@ class view(osv.osv): ['type', '=', view_type], ['inherit_id', '=', False], ] - ids = self.search(cr, uid, domain, limit=1, order='priority', context=context) + ids = self.search(cr, uid, domain, limit=1, context=context) if not ids: return False return ids[0]