Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] helpdesk_mgmt_timesheet_time_type #517

Empty file.
3 changes: 3 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
19 changes: 19 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2023 XCG Consulting <https://orbeet.io/>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Helpdesk Ticket Timesheet Time Type",
"summary": "Add time type to the Timesheet of tickets in Helpdesk.",
"author": "XCG Consulting, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/helpdesk",
"license": "AGPL-3",
"category": "Project",
"version": "16.0.1.0.0",
"depends": [
"helpdesk_mgmt_timesheet",
"hr_timesheet_time_type",
],
"data": [
"views/helpdesk_ticket_view.xml",
],
}
12 changes: 12 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
To configure this module, you need to:

#. Allow Timesheet for a Helpdesk's Team
#. Set a Default Project (optional)

Allow Timesheet
~~~~~~~~~~~~~~~

#. Go to Helpdesk > Configuration > Teams.
#. Edit or create a new team.
#. Check Allow Timesheet option to allow timesheets for that team.
#. Select a Project for that team (optional).
4 changes: 4 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `XCG Consulting <https://orbeet.io/>`_:

* Moctar Diallo <[email protected]>
* Arthur Mayer <[email protected]>
1 change: 1 addition & 0 deletions helpdesk_mgmt_timesheet_time_type/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds Time Type to the Timesheet of tickets Helpdesk module.
4 changes: 4 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#. Go to *Helpdesk* or *Helpdesk > Dashboard* to see the tickets dashboard.
#. In the Kanban view, click in the kanban card of a team to see their tickets and create new ones.
#. If there is not a Default Project you will need select a Project for the Ticket to show the Timesheet Table.
#. You will see the column field ``time_type_id`` in the tree view of timesheets.
23 changes: 23 additions & 0 deletions helpdesk_mgmt_timesheet_time_type/views/helpdesk_ticket_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<data>
<record id="timesheet_time_type_helpdesk_ticket_view_form" model="ir.ui.view">
<field name="name">timesheet.time.type.helpdesk.ticket.form.view</field>
<field name="model">helpdesk.ticket</field>
<field
name="inherit_id"
ref="helpdesk_mgmt_timesheet.timesheet_helpdesk_ticket_view_form"
/>
<field name="priority" eval="20" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='timesheets']//tree/field[@name='name']"
position="after"
>
<field
groups="hr_timesheet.group_hr_timesheet_user"
name="time_type_id"
/>
</xpath>
</field>
</record>
</data>
6 changes: 6 additions & 0 deletions setup/helpdesk_mgmt_timesheet_time_type/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)