Files
odoo_source/addons/hr_timesheet/models
kdeb@odoo.com 6b724a2333 [FIX] helpdesk_timesheet: set partner in timesheet from helpdesk ticket
Issue:
- When a Helpdesk ticket is associated with a partner, this association
 is not being correctly linked in the Timesheet module. As a result,
 when attempting to group Timesheet entries by partner, the grouping is
 inaccurate.
- The issue is caused by the '_compute_partner_id' not being triggered
due to the 'partner_id' being set in the '_timesheet_preprocess' method.

Steps To Reproduce:
- Go to Helpdesk
- Click on any project with the timesheet option enabled.
- Click on new
- Add title, customer and timesheet hours
- Go to Timesheet
- Group by 'partner'> the customer is not there

Solution:
- remove the lines where partner_id is set in '_timesheet_preprocess'.

opw-3667921

closes odoo/odoo#153740

X-original-commit: 811e84289952a0398f47aafb54f623664e8e191f
Related: odoo/enterprise#56446
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Kawtar Drissi El Bouzaidi (kdeb) <kdeb@odoo.com>
2024-02-13 14:14:56 +00:00
..