field:
month_selelction = fields.Date(string="select month")
xml:
field name="month_selection" widget="date" options=""
field:
month_selelction = fields.Date(string="select month")
xml:
field name="month_selection" widget="date" options=""
Odoo does not provide a built-in Month-Year picker for fields.Date; a date field always requires a complete date value, including the day. While it may be possible to customize the date picker to display only months and years, support varies depending on the Odoo version and widget implementation. For a reliable solution, it is generally recommended to use separate fields for Month and Year, or implement a custom widget if a true Month-Year selection interface is required. This approach provides better control and compatibility across Odoo versions.
Hope it helps
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
3
Mei 24
|
5592 | |||
|
1
Feb 24
|
7043 | |||
|
0
Jan 18
|
9379 | |||
|
1
Okt 25
|
3486 | |||
|
4
Okt 25
|
6456 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
unfortunately, it's not provided yet as a default and ready to use field with that capability in Odoo 17