-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
[17.0][ADD] hr_leave_dashboard_extra_time #177
base: 17.0
Are you sure you want to change the base?
[17.0][ADD] hr_leave_dashboard_extra_time #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, could you add unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an expert but lgtm
Please avoid plurals in module names: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#11modules |
750b551
to
eb12777
Compare
Hello @pedrobaeza, the purpose of this module is to display an additional tab at the top of the Time Off Dashboard: Extra Hours, informing employees about overtime hours. For now we decided to keep this name consistent with the purpose of the module, if you have any ideas or suggestions please let us know. |
|
eb12777
to
3925389
Compare
hello @pedrobaeza , I have renamed the module name to |
3925389
to
96754c9
Compare
96754c9
to
3257f11
Compare
OK, but you should do it in the same commit. And another question is that you are not the original author of this, so Mint must authorize this move to OCA and their contributor should sign the OCA CLA. |
Hello @pedrobaeza Thank you for taking care of these formal points. @janikvonrotz Could you give us a review on this PR. Could you confirm that you have signed the OCA CLA? |
@pedrobaeza I have signed the CLA and authorized this move with @leemannd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module seems to do much more than the original module.
I was able to install the module and run the tests.
Then I tried to verify its functionality, but failed.
I got 2 extra hours:
But they were not shown on the dashboard:
A lot has changed in attendance and holidays, I am not up-to-date and so have missed to important changes.
Update 1
When I create and validate a leave of type extra hours, this is what's shown:
I have to admit, I don't really understand why it says 0.13 hours.
@leemannd Do you have test instructions to verify the functionality of the modul?
At Mint System we have this kind of standard: https://wiki.mint-system.ch/odoo-module-test-instructions.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this image. Its our default background image for the Odoo app store.
Hello @janikvonrotz , Thank you for your quick feedback. |
Thanks for confirming about the grant. |
Hi @janikvonrotz probably 1 hour taken = 0.125 day, rounded up to 0.13; should be expressed in hours, looking into it |
Hello @janikvonrotz, the reason why the Extra Hours amount is incorrectly expressed in days instead of hours is an issue in odoo itself, I just pushed this PR to fix it: github.com/odoo/odoo/pull/17756 |
The original development of this module has been done by Mint System.
It can be found in: https://github.com/Mint-System/Odoo-Apps-HR/blob/15.0/hr_attendance_overtime_negative_hours
This module has been ported to the OCA with their agreement, cc @janikvonrotz
hr_leave_dashboard_extra_time
hr_attendance_overtime_negative_hours
.requires_allocation == no
more detail in herehr_attendance_overtime_negative_hours
tohr_leave_dashboard_extra_time
to reflect that changeResults
before install module
after