From 58d414ec1c0c1559435eb3fc9ebdc5cf549efa4f Mon Sep 17 00:00:00 2001 From: Rim BEN DHAOU Date: Mon, 15 Apr 2019 22:17:46 +0000 Subject: [PATCH] [FIX] calendar: fix required conditions for subfields of recurrent events For recurrent events, many fields are set to define the recurrency; these fields are invisible unless (recurrency', '=', True). However there are fields that depend on fields to define the recurrency, which are required in some cases. However in case where recurrency is later set to False, no onchange cleans up the intermediary values (this is taken care of in the create), but the 'required' on the non-relevant fields might prevent from saving. We fix these cases by adding the recurrency in the list of requirements. opw 2002181 closes odoo/odoo#32698 Signed-off-by: Nans Lefebvre (len) --- addons/calendar/views/calendar_views.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/calendar/views/calendar_views.xml b/addons/calendar/views/calendar_views.xml index d6f452992bc..96ef7ea790e 100644 --- a/addons/calendar/views/calendar_views.xml +++ b/addons/calendar/views/calendar_views.xml @@ -162,7 +162,7 @@
- +
@@ -182,10 +182,10 @@ attrs="{'required': [('month_by', '=', 'date'), ('rrule_type', '=', 'monthly')], 'invisible': [('month_by', '!=', 'date')]}"/>