Improved trigger selection query

bzr revid: hda@tinyerp.com-20091105064139-ydbaycbiogouwqgc
This commit is contained in:
Marcelo Hamra 2009-11-05 12:11:39 +05:30 committed by HDA (OpenERP)
parent 5ea54704ea
commit 52066fa679
1 changed files with 2 additions and 2 deletions

View File

@ -363,8 +363,8 @@ class actions_server(osv.osv):
def _select_signals(self, cr, uid, context={}):
cr.execute("select distinct t.signal as key, t.signal || ' - [ ' || w.osv || ' ] ' as val from wkf w, wkf_activity a, wkf_transition t "\
" where w.id = a.wkf_id " \
" and t.act_from = a.wkf_id " \
" or t.act_to = a.wkf_id and t.signal not in (null, NULL)")
" and t.act_from = a.id " \
" or t.act_to = a.id and t.signal not in (null, NULL)")
result = cr.fetchall() or []
res = []
for rs in result: