[MIG] helpdesk_timesheet_exclude_from_sale_order: migrate to 18.0

This commit is contained in:
Stéphan Sainléger
2026-03-17 21:48:12 +01:00
parent bf91f01387
commit 8aeb08ce14
5 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
*.*~
*pyc

View File

@@ -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.

View File

@@ -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,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="timesheet_helpdesk_ticket_view_form_exclude_from_sale_order" model="ir.ui.view">
<field name="name">timesheet.helpdesk.ticket.view.form.exclude.from.sale.order</field>
<field name="model">helpdesk.ticket</field>
<field name="inherit_id" ref="helpdesk_mgmt_timesheet.timesheet_helpdesk_ticket_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='unit_amount']" position="before">
<field name="exclude_from_sale_order" />
</xpath>
</field>
</record>
</odoo>