I just want to know where the month comes from to override the method
https://pasteboard.co/KxxF62VOFe5x.png
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I just want to know where the month comes from to override the method
https://pasteboard.co/KxxF62VOFe5x.png
Hello Behruz,
You can follow the below steps to find ,where does the month comes from:
Please find code in comment.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwar
- “<widget name="hr_leave_stats"/>” is used in “Time-Off(hr_holidays)” module inside the view having record id=”hr_leave_view_form_manager”
- This widget is extended in “leave_stats_widget.js” file.
- The above Js-file is linked with the template- src-> leave_stats_templates.xml
- If department leaves is available then the template = “t-name="hr_holidays.department_leave"” is called
For Your Reference:
<t t-name="hr_holidays.department_leave">
<table class="o_group o_inner_group table-striped">
<thead>
<tr>
<td colspan="2">
<div class="o_horizontal_separator"><t t-esc="widget.department.data.display_name"/> in <t t- esc="widget.date.format('MMMM')"/></div>
</td>
</tr>
</thead>
and so on .....
- And in t-esc: Month is extracted from date.
- To make changes in Date , you have to inherit the “_setState” method used inside the “leave_stats_widget.js” file.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Okt 23
|
1135 | ||
|
0
Jun 23
|
1661 | ||
|
2
Okt 21
|
6910 | ||
|
0
Mei 16
|
7580 | ||
|
1
Agu 15
|
4348 |