[FIX]note: notes with undefined stages did not appear if the user had defined stages (they appeared if the user had no stages defined)

bzr revid: dle@openerp.com-20131127151815-gzk9py9wtzmndziw
This commit is contained in:
Denis Ledoux 2013-11-27 16:18:15 +01:00
parent 866a7c92b6
commit a1eb7fffc2
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ class note_note(osv.osv):
if result and result[0]['stage_id'][0] == current_stage_ids[0]:
dom_in = result[0]['__domain'].pop()
result[0]['__domain'] = domain + ['|', dom_in, dom_not_in]
result[0]['stage_id_count'] += nb_notes_ws
else:
# add the first stage column
result = [{