Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 169 |
Technical Name |
year_picker |
License | LGPL-3 |
Year Picker Widget
Allows users to easily select specific year within Odoo.
Usage
Step 1 — Define a Date Field
Add a Date
type field in your Python model:
fiscal_year = fields.Date(string="Fiscal Year")
Step 2 — Use the Widget in XML View
Open your form view and apply the widget="year"
to your
date field:
<field name="fiscal_year" widget="year"/>
Step 3 — Save and Reload
Save your XML view, upgrade the module, and open the form view. You’ll now see a clean and intuitive year picker field!

Support & Contact
💻 Developer: Malaika Gohar
📧 Email:
malaikagohar2003@gmail.com
LinkedIn:
linkedin.com/in/malaikagohar
Please log in to comment on this module