Hi all,
Can we add the current date into reports by Studio please?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
Can we add the current date into reports by Studio please?
Thanks
Hi,
Yes it is possible to add the current date into reports using Studio.If the model does not have an existing field for the current date, you have to create a date field in the model to store the current date.
After creating the field a compute function can given to the field in order to compute the current date. For that you can click on the ‘More’ button at the left bottom corner and will be redirected to the field properties. There under the ‘Advanced Properties’ section we can give the required dependencies and the compute function in python code as:
for record in self:
record ['x_studio_date_field_name'] = datetime.datetime.now ()
Then you can go to the reports section in Studio, select the required report and add the date field in the report.
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Oct 24
|
770 | ||
|
2
Oct 24
|
1916 | ||
|
1
Jul 24
|
1223 | ||
|
0
Jun 24
|
582 | ||
|
2
Feb 24
|
1738 |