Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3211 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
feb. 25
1935
1
dec. 24
2083
4
mai 24
7229
2
mar. 24
2428
2
mar. 24
2956