Year Widget
by Agga https://www.linkedin.com/company/ideacode-academy , IdeaCode Academy https://www.linkedin.com/company/ideacode-academy
Odoo
Year Widget
Use year-only input and display for date fields
Year Widget registers a backend field widget named year. It displays date values as yyyy and limits date field precision to years.
Year-Only Display
Show date values using only the year portion.
Developer Friendly
Use widget="year" on date fields in XML views.
Main Features
- Register a backend field widget named year.
- Display values in yyyy format.
- Limit date precision to years.
- Useful for education year, model year, fiscal year, and similar fields.
Example
<field name="date_year" widget="year"/>
Support and Contact
- Email: hanzawnyineonline@gmail.com
- LinkedIn: https://www.linkedin.com/in/hanzawnyein/
- Facebook: https://facebook.com/ideacodeacademy
- WhatsApp: +959448450841
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 26 |
| Technical Name |
ica_year_widget |
| License | LGPL-3 |
| Website | https://www.linkedin.com/company/ideacode-academy |
Please log in to comment on this module