Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3144 Tampilan

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
Buang
Penulis

Bump

Penulis

bump

Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Feb 25
1894
1
Des 24
2060
4
Mei 24
7179
2
Mar 24
2403
2
Mar 24
2912