diff options
| author | Aurélien (avd) <avd@odoo.com> | 2020-06-10 09:24:52 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-08-19 08:17:52 +0000 |
| commit | dc20520034edfa55abe9a5d48e3b7e6c1adf04bd (patch) | |
| tree | 20b24778956e50f7dcbf904e0af3f4df75ec3ec5 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 42abf8f49639439d992c43ddf40f7f04e8f7e7d5 (diff) | |
[IMP] sale_timesheet: allow to timesheet on project without putting the task_id
Currently timesheeting on a project without specifying the task does not
increase the delivered_qty of the related sale order line.
This could potentially lead to issues with the Helpdesk module for instance.
When a project is allow_billable = false, the user is not required to specify
the task_id on the helpdesk's ticket. This means that hours timesheeted while
working on this ticket will not be added to the delivered_qty of the related
SOL.
This commit "fixes" this by allowing to timesheet on project without specifying
the task_id. So now, even if an helpdesk's ticket has no task_id, the timesheeted
hours will be added to the related SOL delivered_qty.
Because it was initially impossible to timesheet on project without setting
the task_id, some tests had to be rewritten.
closes odoo/odoo#53172
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
