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

[17.0]helpdesk_mgmt_timesheet #532

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
99f7d73
[ADD] helpdesk_mgmt_timesheet: original files from PR #121
dalonsod Jul 28, 2020
925ad77
[ADD] icon.png
OCA-git-bot Aug 22, 2020
2cf4831
helpdesk_mgmt_timesheet 12.0.1.1.0
OCA-git-bot Aug 22, 2020
67e1732
[IMP] helpdesk_mgmt_timesheet: black, isort
Aug 23, 2020
84c9026
[MIG] helpdesk_mgmt_timesheet: Migration to 13.0
Aug 23, 2020
2d039e0
[UPD] Update helpdesk_mgmt_timesheet.pot
oca-travis Aug 24, 2020
91e0439
[UPD] README.rst
OCA-git-bot Aug 24, 2020
f0b62e0
Translated using Weblate (Spanish)
dalonsod Aug 24, 2020
8fd1bca
[FIX] Helpdesk Management Timesheet
gdgellatly Oct 19, 2020
2eaad52
helpdesk_mgmt_timesheet 13.0.1.0.1
OCA-git-bot Oct 21, 2020
09712c8
[UPD] Update helpdesk_mgmt_timesheet.pot
oca-travis Dec 15, 2020
e49871d
Update translation files
oca-transbot Dec 15, 2020
dfdc817
[13.0][FIX] Names in pages is necesary to inherit
Jan 4, 2021
135c144
[IMP] helpdesk_mgmt_timesheet: filter tickets with activity on timesh…
dalonsod Feb 11, 2021
cf6a477
Added translation using Weblate (Hungarian)
tdombos Apr 16, 2021
35a2877
Translated using Weblate (Hungarian)
tdombos Apr 16, 2021
0e4c422
helpdesk_mgmt_timesheet 13.0.1.0.2
OCA-git-bot Apr 27, 2021
8bcb333
[UPD] Update helpdesk_mgmt_timesheet.pot
oca-travis Apr 27, 2021
3702ee3
Update translation files
oca-transbot Apr 27, 2021
2f23ab0
[13.0][FIX]helpdesk_mgmt_timesheet: default_project not a field in he…
manuelregidor May 6, 2021
0829797
helpdesk_mgmt_timesheet 13.0.1.0.3
OCA-git-bot May 26, 2021
a5ef959
helpdesk_mgmt_timesheet 13.0.1.1.0
OCA-git-bot Jul 28, 2021
d763ccf
[IMP] helpdesk_mgmt_timesheet: black, isort, prettier
Aug 18, 2021
e9d5dea
[MIG] helpdesk_mgmt_timesheet: Migration to 14.0
Aug 18, 2021
5d1f573
[IMP] Merge helpdesk_mgmt_timeheet_time_control
Aug 18, 2021
7bcf249
[MIG] helpdesk_mgmt_timesheet: Migration to 14.0
Aug 18, 2021
2ac85ae
[UPD] Update helpdesk_mgmt_timesheet.pot
oca-travis Sep 2, 2021
4260291
[UPD] README.rst
OCA-git-bot Sep 2, 2021
f607522
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 11, 2021
e29bf66
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 12, 2021
fd98072
[FIX] helpdesk_mgmt: remove obsolete 'view_type'
MiquelRForgeFlow Feb 25, 2022
1bd653a
helpdesk_mgmt_timesheet 14.0.1.0.1
OCA-git-bot Feb 25, 2022
f2fc6d8
Added translation using Weblate (Italian)
francesco-ooops Mar 24, 2022
437d8e5
Translated using Weblate (Italian)
SicurSam Mar 25, 2022
eefbd55
Translated using Weblate (Italian)
francesco-ooops Mar 25, 2022
8a3a3fb
Added translation using Weblate (French)
remi-filament May 31, 2022
e77f0f3
Translated using Weblate (French)
remi-filament May 31, 2022
aeaeb13
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
567bbb7
Translated using Weblate (Italian)
francesco-ooops Feb 1, 2023
27bf9e1
Added translation using Weblate (Portuguese (Brazil))
douglascstd Mar 14, 2023
0fe1bd1
Translated using Weblate (Portuguese (Brazil))
douglascstd Mar 14, 2023
8441336
[MIG] helpdesk_mgmt_timesheet: Migration 16.0
Jul 4, 2023
7bad47e
[UPD] Update helpdesk_mgmt_timesheet.pot
Aug 3, 2023
6ab2bea
[UPD] README.rst
OCA-git-bot Aug 3, 2023
4f1b03e
Translated using Weblate (Spanish)
moitabenfdz Aug 7, 2023
3bfbd20
[FIX] helpdesk_mgmt_timesheet: wrong variable on report
Christian-RB Aug 21, 2023
5ecee2c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
2bb85bc
[FIX] helpdesk_mgmt_timesheet: Ticket submit broken
ypapouin May 10, 2023
239a89e
Update translation files
weblate Oct 9, 2023
e3b210f
Translated using Weblate (Italian)
mymage Oct 10, 2023
d26c873
Translated using Weblate (Spanish)
Ivorra78 Oct 12, 2023
e1f2661
[BOT] post-merge updates
OCA-git-bot Oct 12, 2023
f4c0d61
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 31, 2023
3110bb7
Translated using Weblate (Italian)
mymage Dec 4, 2023
1a241dc
[BOT] post-merge updates
OCA-git-bot Dec 24, 2023
a7e1867
Translated using Weblate (Italian)
mymage Dec 27, 2023
573e739
[IMP] helpdesk_mgmt_timesheet: pre-commit auto fixes
chandni-serpentcs Jan 11, 2024
f6f0ebf
[MIG] helpdesk_mgmt_timesheet: Migration to 17.0
chandni-serpentcs Jan 12, 2024
8179bf7
[IMP]Executed pre-commit
chandni-serpentcs Feb 13, 2024
3f1a4b9
[IMP]Improved code to fix pre-commit issues
chandni-serpentcs Feb 13, 2024
32f3338
[IMP]Executed pre-commit
chandni-serpentcs Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions helpdesk_mgmt_timesheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
=========================
Helpdesk Ticket Timesheet
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:55e014ae6507628a23c4a4c23214fe218c27b3cff71a6684cca277db2224f4f5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github
:target: https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt_timesheet
:alt: OCA/helpdesk
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt_timesheet
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds Timesheet funcionality in Helpdesk module.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

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

Allow Timesheet
---------------

1. Go to Helpdesk > Configuration > Teams.
2. Edit or create a new team.
3. Check Allow Timesheet option to allow timesheets for that team.
4. Select a Project for that team (optional).

Usage
=====

1. Go to *Helpdesk* or *Helpdesk > Dashboard* to see the tickets
dashboard.
2. In the Kanban view, click in the kanban card of a team to see their
tickets and create new ones.
3. If there is not a Default Project you will need select a Project for
the Ticket to show the Timesheet Table.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/helpdesk/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_timesheet%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Aresoltec Canarias
* Punt Sistemes
* SDi Soluciones Digitales
* Solvos

Contributors
------------

- `Aresoltec Canarias, S.L <https://www.aresoltec.com>`__:

- Inma Sánchez

- `SDi Soluciones, S.L. <https://www.sdi.es>`__:

- Oscar Soto
- Jorge Luis Quinteros

- `Punt Sistemes, S.L. <https://www.puntsistemes.es/>`__:

- Carlos Ramos

- `Solvos Consultoría Informática, S.L. <https://www.solvos.es/>`__:

- David Alonso

- `Guadaltech Soluciones Tecnológicas,
S.L. <https://www.guadaltech.es/>`__:

- Fernando La Chica <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt_timesheet>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions helpdesk_mgmt_timesheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
from . import models
from . import controllers
31 changes: 31 additions & 0 deletions helpdesk_mgmt_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (C) 2020 Aresoltec Canarias <www.aresoltec.com>
# Copyright (C) 2020 Punt Sistemes <www.puntsistemes.es.es>
# Copyright (C) 2020 SDi Soluciones Digitales <www.sdi.es>
# Copyright (C) 2020 Solvos Consultoría Informática <www.solvos.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Helpdesk Ticket Timesheet",
"summary": "Add HR Timesheet to the tickets for Helpdesk Management.",
"author": "Aresoltec Canarias, "
"Punt Sistemes, "
"SDi Soluciones Digitales, "
"Solvos, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/helpdesk",
"license": "AGPL-3",
"category": "After-Sales",
"version": "17.0.1.0.0",
"depends": [
"helpdesk_mgmt_project",
"hr_timesheet",
"project_timesheet_time_control",
],
"data": [
"views/helpdesk_team_views.xml",
"views/helpdesk_ticket_views.xml",
"views/hr_timesheet_views.xml",
"report/report_timesheet_templates.xml",
],
"demo": ["demo/helpdesk_mgmt_timesheet_demo.xml"],
}
1 change: 1 addition & 0 deletions helpdesk_mgmt_timesheet/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
17 changes: 17 additions & 0 deletions helpdesk_mgmt_timesheet/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import odoo.http as http

from odoo.addons.helpdesk_mgmt.controllers.main import HelpdeskTicketController


class CustomHelpdeskTicketController(HelpdeskTicketController):
def _prepare_submit_ticket_vals(self, **kw):
vals = super()._prepare_submit_ticket_vals(**kw)
team = (
http.request.env["helpdesk.ticket.team"].sudo().browse(vals.get("team_id"))
)
if team.default_project_id and not vals.get("project_id"):
vals["project_id"] = team.default_project_id.id
return vals
36 changes: 36 additions & 0 deletions helpdesk_mgmt_timesheet/demo/helpdesk_mgmt_timesheet_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="project_1_demo" model="project.project">
<field name="name">Helpdesk general project</field>
</record>
<record id="project_task_1_demo" model="project.task">
<field name="name">Helpdesk general task</field>
<field name="project_id" ref="project_1_demo" />
</record>
<record id="helpdesk_mgmt.helpdesk_team_2_demo" model="helpdesk.ticket.team">
<field name="allow_timesheet" eval="True" />
<field name="default_project_id" ref="project_1_demo" />
</record>
<record id="helpdesk_mgmt.helpdesk_ticket_1_demo" model="helpdesk.ticket">
<field name="team_id" ref="helpdesk_mgmt.helpdesk_team_2_demo" />
<field name="project_id" ref="project_1_demo" />
<field name="task_id" ref="project_task_1_demo" />
<field name="planned_hours" eval="5" />
</record>
<record id="helpdesk_ticket_1_timesheet_1_demo" model="account.analytic.line">
<field name="ticket_id" ref="helpdesk_mgmt.helpdesk_ticket_1_demo" />
<field name="name">Initial analysis</field>
<field name="user_id" ref='base.user_admin' />
<field name="project_id" ref="project_1_demo" />
<field name="task_id" ref="project_task_1_demo" />
<field name="unit_amount" eval="2.5" />
</record>
<record id="helpdesk_ticket_1_timesheet_2_demo" model="account.analytic.line">
<field name="ticket_id" ref="helpdesk_mgmt.helpdesk_ticket_1_demo" />
<field name="name">Resolution</field>
<field name="user_id" ref='base.user_admin' />
<field name="project_id" ref="project_1_demo" />
<field name="task_id" ref="project_task_1_demo" />
<field name="unit_amount" eval="2" />
</record>
</odoo>
Loading
Loading