diff options
| author | ggh-openerp <ggh@tinyerp.com> | 2013-04-05 17:15:54 +0530 |
|---|---|---|
| committer | ggh-openerp <ggh@tinyerp.com> | 2013-04-05 17:15:54 +0530 |
| commit | 93f0850a3565eac8d04c159775c8be486cee96e1 (patch) | |
| tree | 92a9f668e7bb98fe12bbe3c09ee8a8646e3476dd | |
| parent | 4d8577c2094c57988aca49446c8f5fa0c9de1e97 (diff) | |
[IMP] Improved code
bzr revid: ggh@tinyerp.com-20130405114554-4il9o3nzmi161uba
| -rw-r--r-- | addons/note/note.py | 2 | ||||
| -rw-r--r-- | addons/note/note_view.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/note/note.py b/addons/note/note.py index 4a2c9e8e283..2d95b15107a 100644 --- a/addons/note/note.py +++ b/addons/note/note.py @@ -133,7 +133,7 @@ class note_note(osv.osv): result = [{ #notes by stage for stages user '__context': {'group_by': groupby[1:]}, - '__domain': [('stage_ids.id', '=', current_stage_id)], + '__domain': domain + [('stage_ids.id', '=', current_stage_id)], 'stage_id': (current_stage_id, stage_name[current_stage_id]), 'stage_id_count': self.search(cr,uid, domain+[('stage_ids', '=', current_stage_id)], context=context, count=True) } for current_stage_id in current_stage_ids] diff --git a/addons/note/note_view.xml b/addons/note/note_view.xml index 49a154d10cc..767f3e62700 100644 --- a/addons/note/note_view.xml +++ b/addons/note/note_view.xml @@ -175,7 +175,7 @@ <field name="view_type">form</field> <field name="view_mode">kanban,tree,form</field> <field name="search_view_id" ref="view_note_note_filter"/> - <field name="context">{'search_default_open_true':True}</field> + <field name="context">{}</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a personal note. |
