- Sep 01, 2023
-
-
tong-odoo authored
Steps to reproduce: - Install Attendances app and Employee app - Setup an employee with a contract which work entry source is from attendance - Change the working schedule to different timezone, for example Asia/Hong_Kong - By default the working schedule should be start to work from 0800 to 1700 - Now create an attendance in the first day of the contract, i.e. 1st May 2023, check in time 0700, check out time 2000 - The total work hours should be 13 - However, in the work entry, the genearted work entry is 0800-2000, only 12 work hours. Current behaviour: The generated work entry mismatches the value of the attendance Expected behaviour: The work entry should match the attendance Explanation: This issue is casued by the timezone issue. When the system generate the work entry, it will calculate the date_from datetime and date_to datetime. Then it will compare between the attendance and the date_from datetime to choose the larger datetime to put inside the work entry as start time. However, the date_from datetime didn't consider the timezone of the working schedule. In the above example, Asia/Hong Kong time is UTC+8 time. Therefore if we convert the attendance time back to UTC time. It is check in time 30 April 2023, 2300 to check out time 1 May 2023, 1200. In the mean time, if we compare between the date_from datetime (1 May 2023, 0000) and the attendance check in time (30 April 2023, 2300). The system will take the date_from time and therefore the generated work entry time is incorrect. task-3468012 closes odoo/odoo#133610 Related: odoo/enterprise#46574 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com> Co-authored-by:
Yannick Tivisse <yti@odoo.com>
-
- Aug 21, 2023
-
-
Thomas Lefebvre (thle) authored
Steps to reproduce: ------------------- - install `hr_work_entry_holidays` module - create an employee and add two contracts: - from 2023-01-01 to 2023-06-30 with a full time (5/5) resource which is expired - from 2023-07-01 to 2023-12-31 with a partial time (4/5) resource which is running (doesn't work on Wednesday) - create an allocation with 10 days - with the employee, create two leaves: - 3 days during the first semester with one Wednesday - 3 days during the second semester with one Wednesday Issue: ------ Leave duration is based on the current contract. If we change the type of leave by modifying its days/hours unit, we will get inconsistencies between days and hours for leave taken in a period belonging to another contract. Cause: ------ Expired contracts are not taken into account when calculating the number of days and hours. Solution: --------- Add `close` state to contract search. opw-3419380 closes odoo/odoo#132097 X-original-commit: 249f8c83 Signed-off-by:
Sofie Gvaladze (sgv) <sgv@odoo.com> Signed-off-by:
Thomas Lefebvre (thle) <thle@odoo.com>
-
- Aug 20, 2023
-
-
Odoo Translation Bot authored
-
- Aug 06, 2023
-
-
Odoo Translation Bot authored
-
- Jul 30, 2023
-
-
Odoo Translation Bot authored
-
- Jul 23, 2023
-
-
Odoo Translation Bot authored
-
- Jul 16, 2023
-
-
Odoo Translation Bot authored
-
- Jul 14, 2023
-
-
Wolfgang Taferner authored
The previous domain fix 84d8bf81 was skipping all potential leaves of type other left out for work entries therefore properly inherit instead of overriding and add the proper domain closes odoo/odoo#126771 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Jul 09, 2023
-
-
Odoo Translation Bot authored
-
- Jul 02, 2023
-
-
Odoo Translation Bot authored
-
- Jun 18, 2023
-
-
Odoo Translation Bot authored
-
- Jun 11, 2023
-
-
Odoo Translation Bot authored
-
- Jun 04, 2023
-
-
Odoo Translation Bot authored
-
- May 28, 2023
-
-
Odoo Translation Bot authored
-
- May 07, 2023
-
-
Odoo Translation Bot authored
-
- Apr 26, 2023
-
-
Odoo Translation Bot authored
-
- Apr 16, 2023
-
-
Odoo Translation Bot authored
-
- Apr 09, 2023
-
-
Odoo Translation Bot authored
-
- Apr 02, 2023
-
-
Odoo Translation Bot authored
-
- Mar 30, 2023
-
-
Kevin Baptiste authored
The fix introduced in #110559 was partially wrong, the employee ID was not properly added to the list and would crash. > TypeError: 'int' object is not iterable closes odoo/odoo#117097 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Mar 12, 2023
-
-
Odoo Translation Bot authored
-
- Mar 05, 2023
-
-
Odoo Translation Bot authored
-
- Feb 14, 2023
-
-
Tommy (tong) authored
Steps to reproduce: - Add a pubic holiday record, i.e., From 6 Feb 2023 to 7 Feb 2023 - Add a leave with the date conflicting the public holiday, i.e. From 3 Feb 2023 to 8 Feb 2023 - Regenrate the work entries and check the work entry in form view. Current behaviour: Missing leave_id on some work entries Expected behaviour: It should linked to the corresponding leave for the work entries that is created by the leave, while public holiday work entries should keep leave_id empty. Explanation: After calling contract._get_interval_leave_work_entry_type, the leaves should be filted out the not related leaves so contract._get_more_vals_leave_interval can get the correct vals. Otherwise public holiday will always return {'leave_id': false} in contract._get_more_vals_leave_interval which will replace the correct leave_id value. closes odoo/odoo#112633 X-original-commit: 66b65074 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Feb 13, 2023
-
-
Odoo Translation Bot authored
-
- Feb 08, 2023
-
-
Rob Coekaerts authored
Some changes were made to the default/demo/test data to be more consistent: - Duplicates of "Paid Time Off" time off types are consolidated into one type (inluding year specific versions, ig "Paid Time Off 2019" - Annual Time Off is renamed back to Paid Time Off (both for the work entry type as the time off type) to be consistent everywhere. - All mentions of years in work entry types and time off types have been removed, as this is no longer relevant with the new allocation rules. - Time off types in the default data have been explicitely made company agnostic, in order for them to be available to all companies and not just the one company that was select when installing hr_holidays. This was already the case for the be_payroll data, but not for the standard hr_holidays ones. - Various small cosmetic / functional fixes and simplifications (eg deduplication of data) - expense_other_input has been made country agnostic, in order for it to be available in all countries. task-2978513 closes odoo/odoo#112173 Related: odoo/enterprise#36796 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Feb 05, 2023
-
-
Odoo Translation Bot authored
-
- Jan 29, 2023
-
-
Odoo Translation Bot authored
-
- Jan 25, 2023
-
-
Kevin Baptiste authored
Calls to `_error_checking()` would look for every work entries between 2 dates, even if we were only modifying one employee's. Because of that the leave creation on big production database would take a long time. Now the method allows for filtering to the employees. task-3142610 closes odoo/odoo#110559 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jan 22, 2023
-
-
Odoo Translation Bot authored
-
- Jan 15, 2023
-
-
Odoo Translation Bot authored
-
- Jan 08, 2023
-
-
Odoo Translation Bot authored
-
- Jan 01, 2023
-
-
Odoo Translation Bot authored
-
- Dec 25, 2022
-
-
Odoo Translation Bot authored
-
- Dec 21, 2022
-
-
Swapnesh Shah authored
Before this Commit, dates was not formatted based on user's language. With this commit, we use format_date to correctly format dates. closes odoo/odoo#108365 X-original-commit: f6f23f3156ccd2b8d36f6608f96ad9985818da54 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Dec 11, 2022
-
-
Odoo Translation Bot authored
-
- Dec 04, 2022
-
-
Odoo Translation Bot authored
-
- Nov 27, 2022
-
-
Odoo Translation Bot authored
-
- Nov 20, 2022
-
-
Odoo Translation Bot authored
-
- Nov 13, 2022
-
-
Odoo Translation Bot authored
-
- Nov 06, 2022
-
-
Odoo Translation Bot authored
-