Greetings,
I created a date field in Odoo Studio, I want it to have todays date by default when I create the registry.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Greetings,
I created a date field in Odoo Studio, I want it to have todays date by default when I create the registry.
Hello Alejandro Velasquez,
Dynamic Default value is Not Support by odoo Studio
If you Want to current Date then we have one more Idea.
You will Create the Fields As Compute
Readonly = False
Stored = True
Dependencies = partner_id
# Please Make Sure in Dependencies it was use every time when you Filling the Data so most probebly use required Fields
Compute
=======
for record in self:
record ['x_studio_date_field_name'] = datetime.datetime.now ()
So in above method when the Customer will change the it will compute and set the Today Date or Datetime.
Thanks ..
For more information Contact us:- https: //kanakinfosystems.com/odoo-development-services
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Feb 24
|
1630 | ||
|
1
Jan 16
|
3133 | ||
|
1
Sep 21
|
2196 | ||
|
0
Sep 20
|
2400 | ||
|
5
Jul 23
|
15663 |