Browse Source

July 31: [FIX]Bug fixed 'advance_hr_attendance_dashboard'

18.0
Cybrosys Technologies 2 days ago
parent
commit
1787641b6f
  1. 5
      advance_hr_attendance_dashboard/doc/RELEASE_NOTES.md
  2. 8
      advance_hr_attendance_dashboard/models/hr_employee.py
  3. 31
      advance_hr_attendance_dashboard/static/description/index.html

5
advance_hr_attendance_dashboard/doc/RELEASE_NOTES.md

@ -10,3 +10,8 @@
#### Version 18.0.1.0.0
#### Bug fixes
- Resolved the style issue of the related products
#### 31.07.2025
#### Version 18.0.1.0.0
#### Bug fixes
- Fixed by handling both comma and dash separators in the cids cookie.

8
advance_hr_attendance_dashboard/models/hr_employee.py

@ -17,6 +17,8 @@
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
###############################################################################
import re
import pandas
from datetime import date, timedelta
from odoo import api, fields, models
@ -57,8 +59,10 @@ class HrEmployee(models.Model):
elif option == 'last_15_days':
dates = [str(date.today() - timedelta(days=day))
for day in range(15)]
cids = request.httprequest.cookies.get('cids')
allowed_company_ids = [int(cid) for cid in cids.split(',')]
cids = request.httprequest.cookies.get('cids', '')
split_cids = re.split(r'[,-]', cids)
allowed_company_ids = [int(cid) for cid in split_cids if cid.isdigit()]
for employee in self.env['hr.employee'].search(
[('company_id', '=', allowed_company_ids)]):
leave_data = []

31
advance_hr_attendance_dashboard/static/description/index.html

@ -865,6 +865,37 @@ Set Default Present Mark For Present And Default Absent Mark For Absent From Con
</div>
</div>
</div>
<div class="row pt-5 m-0">
<div class="col-md-3">
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;">
Latest Release 18.0.1.0.0
</h4>
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;">
31th July, 2025
</span>
</div>
<div class="col-md-8">
<div style="padding:0 0 40px">
<div style="margin:0 0 10px">
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px">
Updt
</div>
</div>
<div class="d-flex m-0"
style="color:#7A7979;">
<ul class="pl-3 mb-0">
<li>
Fixed by handling both comma and dash separators in the cids cookie.
</li>
</ul>
</div>
</div>
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3">
</div>
</div>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save