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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
3
de maig 24
|
5583 | |||
|
1
de febr. 24
|
7027 | |||
|
0
de gen. 18
|
9368 | |||
|
1
d’oct. 25
|
3458 | |||
|
4
d’oct. 25
|
6434 |
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