[ADD]helpdesk_timesheet_exclude_from_sale_order

This commit is contained in:
Boris Gallet
2025-07-08 12:01:12 +02:00
committed by LaetitiaElabore
parent 63af539ba6
commit 217cafe0e5
5 changed files with 69 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,38 @@
==========================================
helpdesk_timesheet_exclude_from_sale_order
==========================================
Add exclude_from_sale_order field in ticket's timesheets
# Installation
Use Odoo normal module installation procedure to install
`helpdesk_timesheet_exclude_from_sale_order`.
# Known issues / Roadmap
None yet.
# Bug Tracker
Bugs are tracked on `our issues website <https://github.com/elabore-coop/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": "16.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>