From 8d5fd2456ffebf7c1a39798b43ceace6ec40b1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Thu, 16 May 2019 15:15:22 +0200 Subject: [PATCH] [FIX] b_shift: Do not show regular info for non regular worker --- beesdoo_shift/views/task.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beesdoo_shift/views/task.xml b/beesdoo_shift/views/task.xml index c75d2bd..efcedb6 100644 --- a/beesdoo_shift/views/task.xml +++ b/beesdoo_shift/views/task.xml @@ -105,11 +105,11 @@ attrs="{'invisible': [('is_regular', '!=', True), ('is_compensation', '!=', True)]}"/> + attrs="{'invisible': [('working_mode', '!=', 'regular')], 'required':[('is_compensation', '=', False)]}"> Regular shift + attrs="{'invisible': [('working_mode', '!=', 'regular')], 'required':[('is_regular', '=', False)]}"/>