Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1791 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
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. "

Publicações relacionadas Respostas Visualizações Atividade
1
mar. 15
7143
6
jun. 24
9354
2
mai. 23
5737
3
jan. 24
13424
1
abr. 23
227