projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f9917c
)
[FIX] ir_ui_view: remove undetermist order on search for views as the _order on the...
author
Martin Trigaux
<mat@openerp.com>
Mon, 12 May 2014 12:56:30 +0000
(14:56 +0200)
committer
Martin Trigaux
<mat@openerp.com>
Mon, 12 May 2014 12:56:30 +0000
(14:56 +0200)
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
patch
|
blob
|
history
diff --git
a/openerp/addons/base/ir/ir_ui_view.py
b/openerp/addons/base/ir/ir_ui_view.py
index
9bc9ad3
..
3bbb87e
100644
(file)
--- 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]