Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] hr_attendance: Add overtime reporting #165084

Conversation

jugj-odoo
Copy link
Contributor

task-3894091

@robodoo
Copy link
Contributor

robodoo commented May 10, 2024

@jugj-odoo jugj-odoo force-pushed the master-hr-attendance-overtime-reporting-jugj branch from 69298da to bc17efd Compare May 10, 2024 11:59
@C3POdoo C3POdoo added the RD research & development, internal work label May 10, 2024
Copy link
Contributor

@sofiagvaladze sofiagvaladze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment 🙌

</record>

<menuitem id="menu_hr_attendance_overtime_reporting" name="Extra Hours" parent="menu_hr_attendance_reporting" sequence="15" groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_overtime_action"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my personal opinion, but I think it's better to put menuitems together.. so move this to addons/hr_attendance/views/hr_attendance_view.xml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, if there was a menuitems.xml file why not, but here i prefer to have it right next to the action 🤷‍♂️

Copy link
Contributor

@mepe-odoo mepe-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just a small comment about timedelta :)

addons/hr_attendance/views/hr_attendance_overtime_view.xml Outdated Show resolved Hide resolved
@jugj-odoo jugj-odoo force-pushed the master-hr-attendance-overtime-reporting-jugj branch from bc17efd to 96a1553 Compare May 16, 2024 19:20
Comment on lines +292 to +294
<menuitem id="menu_hr_attendance_reporting" name="Reporting" parent="menu_hr_attendance_root" sequence="15" groups="hr_attendance.group_hr_attendance_officer"/>

<menuitem id="menu_hr_attendance_attendance_reporting" name="Worked Hours" parent="menu_hr_attendance_reporting" sequence="15" groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_reporting"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line length 😇

Suggested change
<menuitem id="menu_hr_attendance_reporting" name="Reporting" parent="menu_hr_attendance_root" sequence="15" groups="hr_attendance.group_hr_attendance_officer"/>
<menuitem id="menu_hr_attendance_attendance_reporting" name="Worked Hours" parent="menu_hr_attendance_reporting" sequence="15" groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_reporting"/>
<menuitem id="menu_hr_attendance_reporting" name="Reporting"
parent="menu_hr_attendance_root" sequence="15"
groups="hr_attendance.group_hr_attendance_officer"/>
<menuitem id="menu_hr_attendance_attendance_reporting" name="Worked Hours"
parent="menu_hr_attendance_reporting" sequence="15"
groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_reporting"/>

</record>

<menuitem id="menu_hr_attendance_overtime_reporting" name="Extra Hours" parent="menu_hr_attendance_reporting" sequence="15" groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_overtime_action"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Suggested change
<menuitem id="menu_hr_attendance_overtime_reporting" name="Extra Hours" parent="menu_hr_attendance_reporting" sequence="15" groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_overtime_action"/>
<menuitem id="menu_hr_attendance_overtime_reporting" name="Extra Hours"
parent="menu_hr_attendance_reporting" sequence="15"
groups="hr_attendance.group_hr_attendance_officer" action="hr_attendance_overtime_action"/>

@Bertrand2 Bertrand2 marked this pull request as ready for review May 23, 2024 09:33
@Bertrand2
Copy link
Contributor

robodoo r+

@C3POdoo C3POdoo requested a review from a team May 23, 2024 09:37
robodoo pushed a commit that referenced this pull request May 23, 2024
task-3894091

closes #165084

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
@robodoo robodoo closed this May 23, 2024
@robodoo robodoo added the 17.3 label May 23, 2024
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
task-3894091

closes odoo#165084

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants