From 8e894cfd2a3d325836079883e51ef47eec1a611c Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Mon, 22 Jan 2018 11:01:53 +0100 Subject: [PATCH] [VIEW] +make pos_config field readonly when the session is not in opening control state --- view/point_of_sale.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/point_of_sale.xml b/view/point_of_sale.xml index 5ac0901..7d7707f 100644 --- a/view/point_of_sale.xml +++ b/view/point_of_sale.xml @@ -37,7 +37,8 @@ selection - [('state', '=', 'active')] + [('state', 'in', ('active',))] + {'readonly': [('state', 'not in', ('opening_control',))]} -- 2.20.1