Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3133 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lut 25
1868
1
gru 24
2051
4
maj 24
7158
2
mar 24
2388
2
mar 24
2902