Skip to content
Snippets Groups Projects
  1. Sep 17, 2023
  2. Sep 10, 2023
  3. Sep 03, 2023
  4. Aug 27, 2023
  5. Aug 20, 2023
  6. Aug 13, 2023
  7. Aug 06, 2023
  8. Aug 03, 2023
    • Yash Vaishnav's avatar
      [FIX] hr_timesheet: fix task_id field records when creating a timesheet · 3b966c2f
      Yash Vaishnav authored
      
      To reproduce the issue, follow these steps:
      
      1. Install the Timesheet and Project.
      2. From the settings menu, create a new company.
      3. Create a project using the newly created company(e.g. New Company) and add
         a task to it.
      4. Open the Timesheet application and create a new timesheet.
      5. In the timesheet, select the project created in step 3, and observe that the
      dropdown for tasks does not display any task.
      
      Cause for this issue:
      -The timesheet application has a domain set for the task field where the company
      associated with the task_id should be the same as the company selected in the
      current environment.
      -However, when a new project is created with a 'New Company', the tasks
      associated with it also have the  'New Company' assigned to them. On the other
      hand, the current environment has a default company called 'Your Company'
      associated with it.
      -Therefore, due to this domain setting, the task field does
      not display any tasks since there are no tasks associated with the
      'Your Company' in the current environment.
      
      Fix:
      Since the cause of the issue is related to the company domain set in the task
      field, we can solve it by removing it from the domain.
      
      task-3323027
      
      closes odoo/odoo#130635
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      3b966c2f
  9. Jul 30, 2023
  10. Jul 23, 2023
  11. Jul 16, 2023
  12. Jul 12, 2023
    • Gurupreet Singh's avatar
      [FIX] hr_timesheet: Fix progress bar value in project task view · 00a46c9b
      Gurupreet Singh authored
      
      Description of the issue/feature this PR addresses:
      In the project task view, add initially planned hours 0.05 and assigned a
      complete value to the the task then the progress bar shows the wrong value
      
      Current behavior before PR:
      when adding the  00:05 planned hours and assigning the complete duration the
      The progress bar value is not right
      
      Desired behavior after PR is merged:
      progress bar value should be right
      
      task-3280609
      
      closes odoo/odoo#128170
      
      X-original-commit: 052dfb5f
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      00a46c9b
  13. Jul 11, 2023
    • Thomas Lefebvre (thle)'s avatar
      [FIX] hr_timesheet, timesheet_grid: adapt relation according to group · 71fc0207
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      -------------------
      On the timesheets tab of a task, with a user
      who does not have access to employees,
      when you click on "Search More...", a traceback appears.
      
      Cause:
      ------
      When we request the view from the backend,
      we ask for "hr.employee" and the backend
      returns "hr.employee.public".
      The latter will be a dictionary key.
      As a result, we will get an `undefined`
      when we use the `hr.employee` key.
      
      Solution:
      ---------
      Modify the relationship according
      to the user's group.
      
      opw-3389733
      
      closes odoo/odoo#127543
      
      Related: odoo/enterprise#43856
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      71fc0207
  14. Jul 09, 2023
  15. Jul 02, 2023
  16. Jun 25, 2023
  17. Jun 18, 2023
  18. Jun 16, 2023
    • Hamza (hisl)'s avatar
      [FIX] hr_timesheet : update effective_hours for progress_hours computation · a28b6a6f
      Hamza (hisl) authored
      
      Steps to reproduce the issue:
      
      Add a project and create a task with a timesheet in it
      set the allocated hours to 00:03
      add a line in the timesheet with hours spent 00:03
      Current Behaviour:
      The percentage calculated would be 96%, even though the time allocated and time spent are equal.
      
      Desired Behaviour:
      The percentage should be 100 as both values i.e. time spent and time allocated are equal.
      
      This is happening because effective_hours value is being rounded off to 2 decimal places, and is not accurate enough to compute the progress_hours.
      
      Here, I have used the same line, that is used to compute effective_hours, to compute the task_total_hours but without rounding off. This will make the calculate more precise and accurate.
      
      OPW-3270858
      
      closes odoo/odoo#124914
      
      X-original-commit: 3b1316e7
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      a28b6a6f
    • Prakash Prajapati's avatar
      [FIX] project, hr_timesheet: move the action_project_timesheet in hr_timesheet module · b4f3f35b
      Prakash Prajapati authored
      
           When the hr_timesheet module is not installed and a customer uses the
           action_project_timesheets action through customization, a traceback will
           occur because he will not get the action of hr_timesheet.
      
      closes odoo/odoo#123214
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      b4f3f35b
  19. Jun 12, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] hr, hr_timesheet: correct empl. access w/ no rights · 41eaff0f
      Victor Piryns (pivi) authored
      
      Current behaviour:
      In mobile view, if an user that doesn't have any rights over
      "Employees", clicking on any of the Many2One `employee_id` (for ex:
      when adding a timesheet on a task and clicking on the employee field),
      for either the dropdown, or to the form view with the `external` button,
      we get a stacktrace.
      
      Expected behaviour:
      We shouldn't be met with a stacktrace, if we don't have rights, we
      should be redirected to the corresponding view for the `hr.employee.
      public` model.
      
      Steps to reproduce:
      - Install Timesheets
      - Set Marc Demo's Employee's right to `none/empty`, login as Marc
      - In mobile view, go to Project > a task > open the timesheet sheet
      - Click on Add or any of the present timesheets
      - Click on employee field, either on it (redirect to the mobile
        kanban view of all employees) or to the right edge of it (redirect
        to the form view for the currently selected employee).
      - Instead of being redirected, you are met with a stacktrace.
      
      Reason for the problem:
      Since the migration to Owl, there is an implicit consistency
      expected between what is the requested model for said view, and the
      model we get back from the server for said view. In general (for
      example when in desktop view), usually we pass by an override of
      `get_formview_action` which changes the model we are loading
      front-end side depending on the access to the employee model. If
      access, we load `hr.employee`, if no access, `hr.employee.public`.
      But for mobile, we don't pass by an action, we just load a dialog,
      and the `resModel` used for the dialog is based on the `relation` of
      the `Many2OneField`, which is `hr.employee`. In that case when
      `get_views` is being called, we receive a view with the model key
      being `hr.employee.public`, which is inconsistent with what the
      front-end requested (which is `hr.employee`) and we have a
      stacktrace in owl.
      
      Fix:
      Override the `relation` property to the correct model in the
      corresponding widget set on the template of the field, based on
      available group. This relation is used to set the `resModel` when
      opening the dialog.
      
      Affected versions:
      - 16.0
      - saas-16.1
      - saas-16.2
      - saas-16.3
      - master
      
      opw-3269817
      
      closes odoo/odoo#123217
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      41eaff0f
  20. Jun 11, 2023
  21. Jun 04, 2023
  22. May 28, 2023
  23. May 21, 2023
  24. May 17, 2023
    • Kartik Chavda's avatar
      [FIX] hr_timesheet: add formatters for uom timer widget · 4260561a
      Kartik Chavda authored
      
      Before this commit timesheet uom timer not displaying proper
      aggregated value because it was not added in formatters registry.
      
      This commit add timesheet uom timer widget in formatter registry to
      display right value when timesheets are encoding in days and views
      are displaying aggregated value(e.g. total in list view).
      
      task-3251672
      
      closes odoo/odoo#121125
      
      Related: odoo/enterprise#40928
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      4260561a
  25. May 15, 2023
    • Kartik Chavda's avatar
      [FIX] timesheet_grid: fix traceback when clicking on timer field · 89cc8443
      Kartik Chavda authored
      
      Steps:
      - Install timesheet.
      - Start timer.
      - Make sure there is enough record to show search more on
      task or project field.
      - Click on search more button.
      - Click on Create button on search more button.
      
      Issue:
      - Traceback.
      
      Cause:
      - Can not find owl form view in legacy form registry because
      recent removal of old legacy code.
      
      Fix:
      - Add a widget to open owl form view in search create dialog
      instead of legacy form view.
      
      task-3051478
      
      closes odoo/odoo#115062
      
      Related: odoo/enterprise#40581
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      89cc8443
  26. May 14, 2023
  27. May 07, 2023
  28. Apr 28, 2023
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] web: use the correct inputmode for fields · 45a408a4
      Hubert Van de Walle (huvw) authored
      Steps to reproduce
      ==================
      
      - Use an IOS device
      - Open a view with a float field
      - Try to edit it
      
      The virtual keyboard displayed is missing a dot, so you can only input
      integers
      
      Cause of the issue
      ==================
      
      For fields that should accept a float value, the inputmode attribute
      should be decimal.
      Also, specifically on IOS, even with the inputmode set to decimal, it
      isn't possible to enter a negative value.
      
      > decimal:
      > Fractional numeric input keyboard containing the digits and decimal separator
      > Devices may or may not show a minus key (-)
      
      Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
      
      
      
      Solution
      ========
      
      For IOS, remove the inputmode attribute so that the default keyboard
      shows. For other devices, use the decimal/numeric value depending on
      whether a float should be accepted.
      
      opw-3269275
      
      closes odoo/odoo#119540
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      45a408a4
  29. Apr 27, 2023
    • Michael (mcm)'s avatar
      [FIX] web: open mobile search view in a dialog · 04d11bf7
      Michael (mcm) authored
      
      Before this commit, the mobile search view was sent to the end of the
      dom (t-portal) and so was on top of everything even the dialog that
      was opened after it. Now, the mobile search view is open in a dialog
      and the depth level between it and other dialogs is fixed.
      
      task id: 3273035
      
      closes odoo/odoo#119595
      
      Related: odoo/enterprise#40255
      Signed-off-by: default avatarMathieu Duckerts-Antoine <dam@odoo.com>
      04d11bf7
  30. Apr 26, 2023
  31. Apr 16, 2023
  32. Apr 14, 2023
  33. Apr 09, 2023
  34. Apr 03, 2023
    • Audric Onockx (auon)'s avatar
      [FIX] project,hr_timesheet: fix performance issue in task kanban · bb7aec2d
      Audric Onockx (auon) authored
      
      It takes a too long to load project task kanban view.
      And ~85% of this time is spent in `ProjectTask._get_all_subtasks`,
      which is a recursive method returning the children of the children,
      while any, of the task, for each task, just to display their count.
      
      We replaced this recursive method with a SQL request,
      which is way faster. Also, it can be called in batch.
      It will return a dict {id: subtask_ids}.
      
      task-3246085
      
      closes odoo/odoo#116570
      
      Related: odoo/enterprise#38723
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      bb7aec2d
  35. Apr 02, 2023
  36. Mar 31, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] hr_timesheet: timesheet uom fallback when AAL's company is False · 92e420ea
      Victor Piryns (pivi) authored
      
      Current behaviour:
      When creating a timesheet, if in the vals passed the AAL doesn't
      have a company (possible since it's not required), then the `uom`
      of the timesheet is False, which doesn't make sense.
      
      Expected behaviour:
      The timesheet `uom` should fallback on the uom of the company
      of the project.
      
      Steps to reproduce:
      - Install hr_timesheet, Accounting
      - Activate the AAL in the settings
      - Create a project with an AAL
      - Remove the company on the AAL of the project
      - In that project create a task and log some timesheet.
      - `uom` field should be empty
      
      Reason for the problem:
      When setting the `product_uom_id` in the vals when creating/writing
      a timesheet, we just take the `project_time_mode_id` on the company
      linked to the AAL. The problem is that the company on an AAL is not
      a required field, so it can be `False`, leading the setting the val
      for `product_uom_id` to `False`.
      
      Fix:
      In case the AAL has no company, we get the `uom` from the company
      linked to the project.
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3245671
      
      closes odoo/odoo#117259
      
      X-original-commit: b39642bf
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      Signed-off-by: default avatarPiryns Victor (pivi) <pivi@odoo.com>
      92e420ea
  37. Mar 29, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] hr_timesheet: fix filter of project in overtime · 69f14411
      Victor Piryns (pivi) authored
      
      Current behaviour:
      Search filter is not showing correct results for projects that are in
      overtime. Some projects that are not in overtime are not shown.
      
      Expected behaviour:
      Search filter for projects that are in overtime should work correctly.
      
      Steps to reproduce:
      - Install Project, Timesheets
      - In one of the projects, create a task in an "In Progress" stage
      - Add an employee on it, planned hours to 1h, and log in the
        timesheet 50 hours (so the task is clearly in overtime of 49h)
      - In that task, add an employee, planned hours to 50h
      - In the same project, create a task in a folded stage, log in the
        timesheet 1h (the task is +49h remaining hours in the green)
      - Fold the stage when done editing the stage.
      - In the project default view, we can clearly see that the project
        is in the red (-49h).
      - Filter based on overtime, the project is not present in the results
      
      Reason for the problem:
      There is a divergence of behaviour between the compute and the
      search method of the `is_project_overtime` on the project.
      The compute takes only the overtime of the tasks that are not in a
      folded stage. While the search is query all the tasks of the project,
      regardless of stage and summing those to deternine if the project is
      in overtime. So if you have 2 tasks, one in a folded stage and the
      other not, that have `remaining_hours` that are cancelling each other,
      the search result is incorrect for that project
      
      Fix:
      Update the SQL query in the search method for `is_project_overtime`,
      to reflect the domain conditions from the compute about the stages.
      
      Affected versions:
      - saas-15.2
      - 16.0
      - saas-16.1
      - master
      
      opw-3182077
      
      closes odoo/odoo#116714
      
      X-original-commit: 1af9c0ac3063c0080c3880916ce1481ecbc118a1
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      Signed-off-by: default avatarPiryns Victor (pivi) <pivi@odoo.com>
      69f14411
  38. Mar 26, 2023
  39. Mar 21, 2023
Loading