Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1489 Vistas

Schedule Activity form:

i want to mark readonly 2 fields in Vew, activity_type_id and date_deadline, code working for activity_type_id but NOT working for date_deadline... is there anything else for a date type field or i am doing something wrong? please help.


field name="activity_type_id" required="1" options="{'no_create': True, 'no_open': True}" attrs="{'readonly': [('activity_type_id', '!=', False)]}"

field name="date_deadline" attrs="{'readonly': [('date_deadline', '!=', False)]}"


regards

Avatar
Descartar
Mejor respuesta

Hi,

I tried the same and it's working just fine, you might want to try upgrading your module.

<field name="activity_type_id" required="1"
          options="{'no_create': True, 'no_open': True}"
          attrs="{'readonly': [('activity_type_id', '!=', False)]}"/>
<field name="date_deadline"
          attrs="{'readonly': [('date_deadline', '!=', False)]}"/>

Hope it helps

Avatar
Descartar
Autor

not worked for me... i have upgraded CRM App. is there anything else to do or any other App i have to upgrade, i am currently working on CRM.

regards

Autor

i tried this on Chrome, FireFox, Brave & Edge, behave same. not make only this date_dateline field. what are the possibilities ?

regards

Autor

sorry, " not make readonly this date_deadline field. "

Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
6763
6
jun 24
8292
2
may 23
5177
3
ene 24
12525
1
abr 23
227