How can we set 'Requested Date' field for default value other than current date, using odoo studio.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
You can set a default value for a field by activating the developer mode, select the value in the corresponding field and click the lady debugger button near logged in users name in the menu bar and click Set Defaults.
See here in this video:https://youtu.be/cQYHiGAd9k4
Thanks
Hi,
What if we want a default value for the date that matches the actualdate instead of a static set value ?
Thanks in advance,
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
def your_function_name(self):
# your logic goes here
return some_date
from_date = fields.Date(string="From Date" ,default=your_function_name)