From 62bda18d1ab7474d71fbbe532eaecff82cf9b055 Mon Sep 17 00:00:00 2001 From: "Aymane (ayt)" Date: Mon, 10 Aug 2020 09:41:05 +0000 Subject: [PATCH] [IMP] crm,website_crm_partner_assign: small view improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a few minor improvements to crm views: - Add the crm.team currency on opportunity amounts on the crm.team kanban view - Slightly reorganize "My Activities" view for increased usability - Remove the "alias_user_id" field in the crm.team form view because it's a related technical field that is not supposed to be modified there. Task #2314894 closes odoo/odoo#55940 Signed-off-by: Thibault Delavallee (tde) Co-authored-by: Aurélien Warnon --- addons/crm/models/crm_team.py | 4 ++-- addons/crm/views/crm_lead_views.xml | 6 +++--- addons/crm/views/crm_team_views.xml | 5 ++--- addons/website_crm_partner_assign/views/crm_lead_views.xml | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/addons/crm/models/crm_team.py b/addons/crm/models/crm_team.py index 5d0b8267d43..850349dc79a 100644 --- a/addons/crm/models/crm_team.py +++ b/addons/crm/models/crm_team.py @@ -26,11 +26,11 @@ class Team(models.Model): help="Number of leads and opportunities assigned this last month.") opportunities_count = fields.Integer( string='# Opportunities', compute='_compute_opportunities_data') - opportunities_amount = fields.Integer( + opportunities_amount = fields.Monetary( string='Opportunities Revenues', compute='_compute_opportunities_data') opportunities_overdue_count = fields.Integer( string='# Overdue Opportunities', compute='_compute_opportunities_overdue_data') - opportunities_overdue_amount = fields.Integer( + opportunities_overdue_amount = fields.Monetary( string='Overdue Opportunities Revenues', compute='_compute_opportunities_overdue_data',) # alias: improve fields coming from _inherits, use inherited to avoid replacing them alias_user_id = fields.Many2one( diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index be059c80d52..cdc95c11ada 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -330,13 +330,13 @@ + - @@ -394,7 +394,7 @@ - + crm.lead.calendar.lead crm.lead @@ -655,6 +655,7 @@ + @@ -675,7 +676,6 @@ - diff --git a/addons/crm/views/crm_team_views.xml b/addons/crm/views/crm_team_views.xml index 3102f0028a6..7eb900bca17 100644 --- a/addons/crm/views/crm_team_views.xml +++ b/addons/crm/views/crm_team_views.xml @@ -135,7 +135,6 @@ - @@ -215,7 +214,7 @@
- +
@@ -227,7 +226,7 @@
- +
diff --git a/addons/website_crm_partner_assign/views/crm_lead_views.xml b/addons/website_crm_partner_assign/views/crm_lead_views.xml index 6d3ffd77853..89a564c0985 100644 --- a/addons/website_crm_partner_assign/views/crm_lead_views.xml +++ b/addons/website_crm_partner_assign/views/crm_lead_views.xml @@ -38,7 +38,7 @@ - +