How to set my date default value as 05/08/2022??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
2915
화면
You can do it as below:
my_date = fields.Date(string='My Date', default=lambda self: fields.Date.context_today(self).replace(day=8,month=5,year=2022))
It's working, where we can define the specific date format like DD/MM/YYYY
You can change it from Languages, Enable developer mode then Go to Settings -> Translations -> Languages -> open your language and edit the date format field to %d/%m/%Y
I tried the same but date showing 2022-05-08
You need to refresh the page. Which screen you check it?
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
6월 25
|
1918 | ||
|
3
7월 25
|
3514 | ||
|
1
5월 25
|
1633 | ||
|
1
5월 25
|
1884 | ||
|
4
5월 25
|
3005 |