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

I would like to show the date but not time of a quotation.

for variable doc.date_order, it shows something like 11/18/2016 18:07:43, but I only want the date to be shown.

Any idea how to set the date format?

頭像
捨棄
最佳答案

Hi Robert

I have explained to Damian

https://www.odoo.com/forum/help-1/question/change-date-format-from-date-time-to-just-date-110791#answer-110806

May cause problem at all references  if you change the field type.

I shall explained you another solution. You make invisible the existing field. Then add an additional Date field in form.

Then pass the value of new field to old field by overriding create and write method.

All the best !


頭像
捨棄
最佳答案

You could just set the widget date for that field in the view and I think that you will be ok

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
1月 24
2519
2
6月 22
4463
2
6月 18
6028
2
2月 24
12512
0
10月 23
2854