跳至內容
選單
此問題已被標幟
1 回覆
1766 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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

作者

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

regards

作者

sorry, " not make readonly this date_deadline field. "

相關帖文 回覆 瀏覽次數 活動
1
3月 15
7116
6
6月 24
9272
2
5月 23
5694
3
1月 24
13370
1
4月 23
227