diff --git a/views/cgscop_form_coop_demande_collective_views.xml b/views/cgscop_form_coop_demande_collective_views.xml index 4025b8d7a85e7e074aec0289749eaf35dc152683..beca6c987dbc9778a1a478f869ab687d9e36fc6d 100644 --- a/views/cgscop_form_coop_demande_collective_views.xml +++ b/views/cgscop_form_coop_demande_collective_views.xml @@ -170,7 +170,7 @@ /> <field name="formation_date_end" - attrs="{'readonly': [('etat', 'not in', ('created'))]}" + attrs="{'readonly': ['&',('etat', 'not in', ('created')),('current_user_is_fc_admin', '=', False)]}" /> <field name="formation_id" diff --git a/views/cgscop_form_coop_demande_views.xml b/views/cgscop_form_coop_demande_views.xml index b9ad48a05317e106e638d2a0a08088e223ac5cfa..ba7eb13e2a0b6126cbcad04b78fb01130ef36e54 100644 --- a/views/cgscop_form_coop_demande_views.xml +++ b/views/cgscop_form_coop_demande_views.xml @@ -215,7 +215,7 @@ /> <field name="formation_date_end" - attrs="{'readonly': ['|',('demande_type', 'not in', ('I')),('etat', 'not in', ('created'))]}" + attrs="{'readonly': ['|',('demande_type', 'not in', ('I')),'&',('etat', 'not in', ('created')),('current_user_is_fc_admin', '=', False)]}" /> <field name="formation_id"