diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml index 54dbcce0c76..c5a76f0ca1e 100644 --- a/addons/account/report/account_invoice_report_view.xml +++ b/addons/account/report/account_invoice_report_view.xml @@ -84,7 +84,7 @@ - + diff --git a/addons/crm/crm_demo.xml b/addons/crm/crm_demo.xml index e7b19415a49..be18b00a75c 100644 --- a/addons/crm/crm_demo.xml +++ b/addons/crm/crm_demo.xml @@ -12,16 +12,7 @@ Indirect Sales - IM - - - Marketing - SPD - - - - diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 45848d5fffc..5f3caf239b8 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -295,7 +295,7 @@ class crm_lead(format_address, osv.osv): """ When changing the user, also set a team_id or restrict team id to the ones user_id is member of. """ team_id = self.pool['crm.team']._get_default_team_id(cr, uid, user_id=user_id, context=context) - if user_id and not team_id and self.pool['res.users'].has_group(cr, uid, 'base.group_multi_salesteams'): + if user_id and not team_id: team_ids = self.pool.get('crm.team').search(cr, uid, ['|', ('user_id', '=', user_id), ('member_ids', '=', user_id)], context=context) if team_ids: team_id = team_ids[0] diff --git a/addons/crm/crm_lead_demo.xml b/addons/crm/crm_lead_demo.xml index 3904637a905..9afea7ed844 100644 --- a/addons/crm/crm_lead_demo.xml +++ b/addons/crm/crm_lead_demo.xml @@ -106,7 +106,7 @@ Could you please send me the details ? Drury 2 - + @@ -160,7 +160,7 @@ Contact: +1 813 494 5005 Roma 2 - + @@ -180,7 +180,7 @@ Contact: +1 813 494 5005 0 - + @@ -239,7 +239,7 @@ Contact: +1 813 494 5005 Sevilla 2 - + Hi, @@ -521,7 +521,7 @@ Andrew 2 - + @@ -541,7 +541,7 @@ Andrew 1 - + @@ -630,7 +630,7 @@ Andrew Send Catalogue by Email - + diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 5ba5b7412ac..43c311feadc 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -47,7 +47,7 @@
- +
@@ -59,7 +59,7 @@ - + @@ -149,8 +149,8 @@ -