From 8be7895172e51ab1c4c83246f2134751d3e29306 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 29 Jan 2010 17:37:03 +0530 Subject: [PATCH 1/3] [IMP] crm: set the domain on act window of crm_opportunity bzr revid: sbh@tinyerp.com-20100129120703-tfsc1kb9wvx2qbbj --- addons/crm/crm_opportunity_menu.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/crm/crm_opportunity_menu.xml b/addons/crm/crm_opportunity_menu.xml index 7a2a0c21d3f..dfc21212b3e 100644 --- a/addons/crm/crm_opportunity_menu.xml +++ b/addons/crm/crm_opportunity_menu.xml @@ -10,6 +10,7 @@ src_model="crm.opportunity" view_mode="calendar,graph" context="{'default_partner_id': active_id, 'default_duration': 4.0}" + domain="[('opportunity_id','=',active_id)]" view_type="form"/> From 05a02f1172a77735b206e6da0e1f6f7977e9f758 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 29 Jan 2010 17:55:53 +0530 Subject: [PATCH 2/3] [IMP] crm: add the domain in phonecall2meeting and opportunity2meeting wizard bzr revid: sbh@tinyerp.com-20100129122553-zsoljo0tx8rajlu3 --- addons/crm/wizard/crm_opportunity_wizard.py | 1 + addons/crm/wizard/crm_phonecall_wizard.py | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/crm/wizard/crm_opportunity_wizard.py b/addons/crm/wizard/crm_opportunity_wizard.py index 5a0a8f0ad0a..63e519fa6c6 100644 --- a/addons/crm/wizard/crm_opportunity_wizard.py +++ b/addons/crm/wizard/crm_opportunity_wizard.py @@ -162,6 +162,7 @@ class opportunity2meeting(wizard.interface): id3 = data_obj.browse(cr, uid, id3, context=context).res_id return { 'name': _('Meetings'), + 'domain' : "[('opportunity_id','=',%s)]"%(data['ids']), 'view_type': 'form', 'view_mode': 'calendar,form,tree', 'res_model': 'crm.meeting', diff --git a/addons/crm/wizard/crm_phonecall_wizard.py b/addons/crm/wizard/crm_phonecall_wizard.py index 89ab90a2c52..6ca4cd803e6 100644 --- a/addons/crm/wizard/crm_phonecall_wizard.py +++ b/addons/crm/wizard/crm_phonecall_wizard.py @@ -221,6 +221,7 @@ class phonecall2meeting(wizard.interface): id3 = data_obj.browse(cr, uid, id3, context=context).res_id return { 'name': _('Meetings'), + 'domain' : "[('phonecall_id','=',%s)]"%(data['ids']), 'view_type': 'form', 'view_mode': 'calendar,form,tree', 'res_model': 'crm.meeting', From 88e67767dd7490d98fcf28323550eb69b814c1d9 Mon Sep 17 00:00:00 2001 From: "uco (OpenERP)" Date: Fri, 29 Jan 2010 18:13:12 +0530 Subject: [PATCH 3/3] [REF] report_crm: Removed act window from Categories. bzr revid: uco@tinyerp.co.in-20100129124312-7qrsralgd94avllb --- addons/report_crm/report_crm_view.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/report_crm/report_crm_view.xml b/addons/report_crm/report_crm_view.xml index a5ac4a942b5..7b46928cb6b 100644 --- a/addons/report_crm/report_crm_view.xml +++ b/addons/report_crm/report_crm_view.xml @@ -148,8 +148,6 @@ - -