From b71fc2199e6c36429aa364f3ab97236b93cbd120 Mon Sep 17 00:00:00 2001 From: "Laurent Desausoi (lade)" Date: Tue, 26 Apr 2022 09:06:08 +0000 Subject: [PATCH] [FIX] calendar: allow to schedule meetings/calls when already created When a an activity was already created, it is no longer to schedule it when we change the type to a call or a meeting. Step to reproduce the issue: 1. Create any activity (without scheduling it) on for example a Quotation 2. Edit this activity and change its type to meeting/call There are no longer a Open Calendar Button, thus we can't schedule it. Solution: The issue is simply that the Open Calendar button is only displayed when the activity is not yet created (and if we have the appropriate category). Instead of this condition, we should display this button if there are no event already created. opw-2824396 closes odoo/odoo#90028 X-original-commit: 1a66a3c4478c5b98951b658b6efbbd0b0d82166d Signed-off-by: Anh Thao PHAM Signed-off-by: Desausoi Laurent (lade) --- addons/calendar/views/mail_activity_views.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/calendar/views/mail_activity_views.xml b/addons/calendar/views/mail_activity_views.xml index a434a4943a4..58c85eac831 100644 --- a/addons/calendar/views/mail_activity_views.xml +++ b/addons/calendar/views/mail_activity_views.xml @@ -25,11 +25,12 @@ {'invisible': [('activity_category', '=', 'meeting')]} -