-
-
Notifications
You must be signed in to change notification settings - Fork 110
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][MIG] hr_holidays_natural_period: Migration to 17.0 #133
Conversation
…ve types [UPD] Update hr_holidays_natural_period.pot [UPD] README.rst
…ployee is not set yet hr_holidays_natural_period 13.0.1.0.1
… employee set yet hr_holidays_natural_period 13.0.1.0.2
…ion. Previously, the _exist_interval_in_date () function always returned False, which always created a new interval. Although this was totally incorrect, it was detected in a real use case when there were working days and holidays in the date range causing incorrect overtime. TT33779 hr_holidays_natural_period 13.0.1.0.3
78c67a4
to
df0211e
Compare
TT37026 [UPD] Update hr_holidays_natural_period.pot [UPD] README.rst
Currently translated at 100.0% (6 of 6 strings) Translation: hr-holidays-16.0/hr-holidays-16.0-hr_holidays_natural_period Translate-URL: https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_natural_period/es/
…reation It is necessary to recalculate the duration value in the create() method when it is done by UX. Fixes OCA#105
df0211e
to
6b1e64c
Compare
@peluko00 please check the CI. The tests are failing. When I create a new leave, I get an error. @Tecnativa TT50070 |
6b1e64c
to
0a87084
Compare
I know but in my dev environment the test aren't failing and the module works good |
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.
@peluko00 the computation seems incorrect from my perspective. Please compare version 16 with version 17.
If an employee works from Monday to Friday, it counts as 7 days according to the employee calendar. However, this module should not consider the employee calendar. Therefore, from the 1st to the 10th should be counted as 10 natural days.
0a87084
to
551ea48
Compare
I fix that problem but the tests are failing but no in dev environment |
@peluko00 I ran the tests on my local machine and encountered the same error. Could you please share how you're running the tests since they seem to be working for you? |
I ran the tests in my local machine with the normal command for executing tests and only installing hr_holidays_natural_period without installing any more modules. |
@peluko00 there should be something incorrect in your way to run tests, as the log is not correct:
Maybe you have some touched Odoo version for running the tests or you are not executing the proper command? If you are putting test tags, make sure you put the correct ones. |
The 4 tests only i see in both images is at the final. |
But are you testing it on installation? Anyway, there's a problem, as stated in this CI or local testing on my colleague, so this migration is not correct while the problem is not fixed. And the test failure highlights that the module may not be working. |
I follow the next steps:
All tests are running but i don't know why don't throws an error. |
You have to run tests at the same time of the installation: |
Hi, @peluko00, have you reviewed the error in the test? Can I help you with anything? |
Yes, i review but i can't find the error |
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.
Superseded by #141 |
No description provided.