Skip to Content
Menu
This question has been flagged
2 Replies
2309 Views

Hi guys!


Really simple question, I know that odoo studio allows you to modify the fields in your sales orders reports, however, is there a way to modify the DATE field so it shows as for example 01/Jan/2022 or 01/JAN/2022. Basically show the 3 letter description of the month instead of the usual number! Is there a special code for the date widget inside the studio app?


thanks!

Avatar
Discard
Author

Bump

Author

bump

Best Answer

Hello Fernando Cordero,

Hope you are doing well.

Let me explain it.We cannot edit the backend files directly,for that we have to create a custom module by ourself and need to inherit the models.But don't worry.You can do it with studio.

Inside the sale order form you can add a new char field for the date.Then add a compute function for that field from front end as like below.

https://drive.google.com/file/d/1zEMhNWIveCh3I8nkA0KA0B_A-bqkT9Yw/view?usp=sharing


Then replace the date_order field inside the pdf report with this field using studio.Thats it.


https://drive.google.com/file/d/1JhrEeVkThoIqtPuEC0LjK5H14v3Zhjf0/view?usp=sharing

Hope it will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Author Best Answer

Hi Jainesh,

Thank you for your reply but could you elaborate a bit? What is the name of the file in the back end that I must edit with the given code? I see you define a function and use the self constructor. 


Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
185
4
May 24
4870
2
Mar 24
694
2
Mar 24
1323
0
Sep 23
354