From 8aeb08ce14436bba7131d294a00128546afcbc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Tue, 17 Mar 2026 21:48:12 +0100 Subject: [PATCH] [MIG] helpdesk_timesheet_exclude_from_sale_order: migrate to 18.0 --- .../.gitignore | 2 + .../README.md | 58 +++++++++++++++++++ .../__init__.py | 0 .../__manifest__.py | 16 +++++ .../views/helpdesk_ticket.xml | 13 +++++ 5 files changed, 89 insertions(+) create mode 100644 helpdesk_timesheet_exclude_from_sale_order/.gitignore create mode 100644 helpdesk_timesheet_exclude_from_sale_order/README.md create mode 100644 helpdesk_timesheet_exclude_from_sale_order/__init__.py create mode 100644 helpdesk_timesheet_exclude_from_sale_order/__manifest__.py create mode 100644 helpdesk_timesheet_exclude_from_sale_order/views/helpdesk_ticket.xml diff --git a/helpdesk_timesheet_exclude_from_sale_order/.gitignore b/helpdesk_timesheet_exclude_from_sale_order/.gitignore new file mode 100644 index 0000000..6da5887 --- /dev/null +++ b/helpdesk_timesheet_exclude_from_sale_order/.gitignore @@ -0,0 +1,2 @@ +*.*~ +*pyc diff --git a/helpdesk_timesheet_exclude_from_sale_order/README.md b/helpdesk_timesheet_exclude_from_sale_order/README.md new file mode 100644 index 0000000..af17310 --- /dev/null +++ b/helpdesk_timesheet_exclude_from_sale_order/README.md @@ -0,0 +1,58 @@ +========================================== +helpdesk_timesheet_exclude_from_sale_order +========================================== + +Add exclude_from_sale_order field in ticket's timesheets. + +This module is a glue module that bridges the ``sale_timesheet_line_exclude`` +functionality with the helpdesk ticket timesheet view. It provides: + +* The ``exclude_from_sale_order`` checkbox displayed on each timesheet line + in the helpdesk ticket form view. +* Allows users to mark specific timesheet entries as excluded from invoicing + directly from the ticket, without having to navigate to the timesheet or + project views. + +This is particularly useful when some time spent on a ticket should not be +billed to the customer (e.g., internal investigation, training, goodwill +gestures). + +# Installation + +Use Odoo normal module installation procedure to install +``helpdesk_timesheet_exclude_from_sale_order``. + +This module depends on: + +* ``helpdesk_mgmt_timesheet``: provides the timesheet functionality on helpdesk + tickets. +* ``sale_timesheet_line_exclude``: provides the ``exclude_from_sale_order`` + field on timesheet lines. + +# Known issues / Roadmap + +None yet. + +# Bug Tracker + +Bugs are tracked on [our issues website](https://git.elabore.coop/Elabore/helpdesk-tools/issues). In case of +trouble, please check there if your issue has already been +reported. If you spotted it first, help us smashing it by providing a +detailed and welcomed feedback. + +# Credits + +## Contributors + +- Boris Gallet +- Laetitia Da Costa + +## Funders + +The development of this module has been financially supported by: + +- Elabore (https://elabore.coop) + +## Maintainer + +This module is maintained by Elabore. diff --git a/helpdesk_timesheet_exclude_from_sale_order/__init__.py b/helpdesk_timesheet_exclude_from_sale_order/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/helpdesk_timesheet_exclude_from_sale_order/__manifest__.py b/helpdesk_timesheet_exclude_from_sale_order/__manifest__.py new file mode 100644 index 0000000..42ad744 --- /dev/null +++ b/helpdesk_timesheet_exclude_from_sale_order/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2025 Boris Gallet (Elabore) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "helpdesk_timesheet_exclude_from_sale_order", + "version": "18.0.1.0.0", + "summary": "Exclude tickets from sale timesheets", + "author": "Boris Gallet, Elabore Coop", + "website": "https://elabore.coop", + "license": "LGPL-3", + "category": "Helpdesk", + "depends": ["sale_timesheet_line_exclude","helpdesk_mgmt_timesheet"], + "data": ["views/helpdesk_ticket.xml"], + "installable": True, + "application": False, + "auto_install": False, +} \ No newline at end of file diff --git a/helpdesk_timesheet_exclude_from_sale_order/views/helpdesk_ticket.xml b/helpdesk_timesheet_exclude_from_sale_order/views/helpdesk_ticket.xml new file mode 100644 index 0000000..27db30e --- /dev/null +++ b/helpdesk_timesheet_exclude_from_sale_order/views/helpdesk_ticket.xml @@ -0,0 +1,13 @@ + + + + timesheet.helpdesk.ticket.view.form.exclude.from.sale.order + helpdesk.ticket + + + + + + + +