Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3132 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
feb 25
1866
1
dic 24
2050
4
may 24
7157
2
mar 24
2386
2
mar 24
2902