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

[17.0][MIG] hr_attendance_report_theoretical_time: Migration to version 17.0 #173

Merged

Commits on Aug 8, 2024

  1. [ADD] hr_attendance_report_theoretical_time

    Theoretical vs Attended Time Analysis
    =====================================
    
    This module adds a new report called "Theoretical vs Attended Time Analysis"
    that compares worked time, measured through attendances records, with the
    theoretical time, computed from employee's working calendar, public holidays
    and employee specific leaves.
    
    There is the possibility of counting as theoretical time some leave types if
    specified in them.
    
    Installation
    ============
    
    On installation time, this module computes the theoretical hours for the day of
    the attendance check-in, so if you have a lot of records, this would be a bit
    slow.
    
    Configuration
    =============
    
    You need to be at least "Attendance / Manual Attendance" for being able to see
    the attendances report.
    
    For including some leave types in the theoretical time, you have to:
    
    * Go to Leaves > Configuration.
    * Select leave type you want to include.
    * Check the mark "Include in theoretical hours".
    
    Usage
    =====
    
    * Go to *Attendances > Reports > Theoretical vs Attended Time Analysis*.
    * Check pivot table or look at the graph view.
    
    Known issues / Roadmap
    ======================
    
    * Employees with less than 1 week in the company will show full week
      theoretical hours.
    * Activate ORM cache for improving performance on computing theoretical hours,
      but assuring that the cache is cleared when the conditions of the computation
      changes.
    * If you change employee's working time, theoretical hours for non attended
      days will be computed according this new calendar. You have to define
      start and end dates inside the calendar for avoiding this side effect.
    * Recompute theoretical hours of affected days when changing the leave type
      to be included or not in theoretical time.
    pedrobaeza authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    74c75c4 View commit details
    Browse the repository at this point in the history
  2. [MIG] hr_attendance_report_theoretical_time: Migration to 12.0

    * Standard procedure
    * Adapt data model
    * Adapt views
    * Adapt code for date handling
    * Adapt tests
    
    [UPD] Update hr_attendance_report_theoretical_time.pot
    pedrobaeza authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    f58da31 View commit details
    Browse the repository at this point in the history
  3. [12.0] hr_attendance_report_theoretical_time: add my attendance as de…

    …fault filter
    
    Update translation files
    
    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: hr-12.0/hr-12.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_attendance_report_theoretical_time/
    Timon Tschanz authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    98b41fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    91b8b86 View commit details
    Browse the repository at this point in the history
  5. [12.0][IMP] hr_attendance_report_theoretical_time: Add filter wizard

    [UPD] Update hr_attendance_report_theoretical_time.pot
    
    hr_attendance_report_theoretical_time 12.0.1.1.0
    
    Update translation files
    
    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: hr-12.0/hr-12.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_attendance_report_theoretical_time/
    Jaime Arroyo authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e8ad45d View commit details
    Browse the repository at this point in the history
  6. Translated using Weblate (German)

    Currently translated at 97.6% (41 of 42 strings)
    
    Translation: hr-12.0/hr-12.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_attendance_report_theoretical_time/de/
    marylla authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    677c75f View commit details
    Browse the repository at this point in the history
  7. [IMP] hr_attendance_report_theoretical_time: recompute attendances

    - We add a wizard so the already existing attendances can be recomputed
    according to an employee calendar change, like a different for a set of
    dates that weren't took into consideration in advance, so the wrong
    theoretical hours are computed.
    
    [UPD] Update hr_attendance_report_theoretical_time.pot
    
    [UPD] README.rst
    
    hr_attendance_report_theoretical_time 12.0.1.2.0
    
    Update translation files
    
    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: hr-12.0/hr-12.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_attendance_report_theoretical_time/
    chienandalu authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    ea6d3f2 View commit details
    Browse the repository at this point in the history
  8. [12.0][FIX] hr_attendance_report_theoretical_time: menu permissions

    - Although the minor permission to access the theoretical time report is
    "Manual Attendance", the menu wasn't accessible due to permissions.
    - Record rules also prevent such users from seeing other employees
    attendances.
    
    hr_attendance_report_theoretical_time 12.0.1.3.0
    chienandalu authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    81e05f6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    767d3fd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    70a6e44 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    63f5367 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8795f35 View commit details
    Browse the repository at this point in the history
  13. [FIX] hr_attendance_report_theoretical_time: Show error in hr.lave fo…

    …rm related to employee public (user without employee groups)
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    3780572 View commit details
    Browse the repository at this point in the history
  14. [FIX] hr_attendance_report_theoretical_time: Remove search_default_my…

    … (context) when hr_attendance_theoretical_action is load from wizard
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e462f94 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c496273 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f8bb54d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    288ecb1 View commit details
    Browse the repository at this point in the history
  18. [MIG] hr_attendance_report_theoretical_time: Migration to 14.0

    [UPD] Update hr_attendance_report_theoretical_time.pot
    
    [UPD] README.rst
    ao-landoo authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    118b879 View commit details
    Browse the repository at this point in the history
  19. [FIX] hr_attendance_report_theoretical_time: Set default department_i…

    …d in wizard correctly according to companies
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    aeaf70c View commit details
    Browse the repository at this point in the history
  20. [FIX] hr_attendance_report_theoretical_time: Filter by all employees …

    …(including archived employees) in wizard
    
    hr_attendance_report_theoretical_time 14.0.1.0.1
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    552bd1c View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (Bulgarian)

    Currently translated at 96.1% (50 of 52 strings)
    
    Translation: hr-attendance-14.0/hr-attendance-14.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-attendance-14-0/hr-attendance-14-0-hr_attendance_report_theoretical_time/bg/
    polimex-lgeorgiev authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    fb165ec View commit details
    Browse the repository at this point in the history
  22. [FIX] hr_attendance_report_theoretical_time: access right to pivot re…

    …port
    
    hr_attendance_report_theoretical_time 14.0.1.0.2
    yankinmax authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    ce507a3 View commit details
    Browse the repository at this point in the history
  23. [IMP] hr_attendance_report_theoretical_time: Separate the setup() of …

    …the tests in TestHrAttendanceReportTheoreticalTimeBase to improve the inheritance of tests in other modules.
    
    TT34898
    
    hr_attendance_report_theoretical_time 14.0.1.0.3
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    047814c View commit details
    Browse the repository at this point in the history
  24. [IMP] hr_attendance_report_theoretical_time: Tests are added to valid…

    …ate the total hours in two-week calendars with defined start and end dates (solved since odoo/odoo#96391).
    
    TT34416
    
    hr_attendance_report_theoretical_time 14.0.1.0.4
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    4f87c6c View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ab167c3 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    2a55041 View commit details
    Browse the repository at this point in the history
  27. [FIX] hr_attendance_report_theoretical_time: tests

    Tests rely on removing tz from the current user and it isn't possible
    anymore after odoo/odoo@d6f2437#diff-38469def2f870bb866f971f57797dd7c21b6a95d52a8eae72f832f0eea2434f9R105
    chienandalu authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    66a3d70 View commit details
    Browse the repository at this point in the history
  28. Translated using Weblate (Italian)

    Currently translated at 100.0% (53 of 53 strings)
    
    Translation: hr-attendance-15.0/hr-attendance-15.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-attendance-15-0/hr-attendance-15-0-hr_attendance_report_theoretical_time/it/
    mymage authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    fa5cfed View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3f00d0c View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    976797b View commit details
    Browse the repository at this point in the history
  31. Translated using Weblate (Spanish)

    Currently translated at 100.0% (53 of 53 strings)
    
    Translation: hr-attendance-16.0/hr-attendance-16.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-attendance-16-0/hr-attendance-16-0-hr_attendance_report_theoretical_time/es/
    Ivorra78 authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    6161344 View commit details
    Browse the repository at this point in the history
  32. [FIX] hr_attendance_report_theoretical_time: Show the Reports menu to…

    … a basic user
    
    We need to leave the action empty for consistency because we are going
    to set different submenus, otherwise the Reports menu would not be
    displayed to a basic user.
    
    TT44849
    victoralmau authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    559a091 View commit details
    Browse the repository at this point in the history
  33. Translated using Weblate (French)

    Currently translated at 47.1% (25 of 53 strings)
    
    Translation: hr-attendance-16.0/hr-attendance-16.0-hr_attendance_report_theoretical_time
    Translate-URL: https://translation.odoo-community.org/projects/hr-attendance-16-0/hr-attendance-16-0-hr_attendance_report_theoretical_time/fr/
    nilshamerlinck authored and juanjosesegui-tecnativa committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    c53aa11 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    a64dba3 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Configuration menu
    Copy the full SHA
    864202d View commit details
    Browse the repository at this point in the history