From: Ludovic CHEVALIER Date: Mon, 22 Jan 2018 10:01:53 +0000 (+0100) Subject: [VIEW] +make pos_config field readonly when the session is not in opening control... X-Git-Url: http://git.heureux-cyclage.org/?p=burette%2Fbikecoop.git;a=commitdiff_plain;h=8e894cfd2a3d325836079883e51ef47eec1a611c [VIEW] +make pos_config field readonly when the session is not in opening control state --- 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',))]}