forked from ForgeFlow/helpdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] helpdesk_mgmt_timesheet: work in progress
Pending: * demo data * i18n * README rebuild
- Loading branch information
Showing
17 changed files
with
267 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
############################################################################### | ||
# For copyright and license notices, see __manifest__.py file in root directory | ||
############################################################################### | ||
from . import account_analytic_line | ||
from . import hr_timesheet | ||
from . import helpdesk_ticket | ||
from . import helpdesk_ticket_team |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
############################################################################### | ||
# For copyright and license notices, see __manifest__.py file in root directory | ||
############################################################################### | ||
from odoo import api, fields, models | ||
|
||
|
||
class AccountAnalyticLine(models.Model): | ||
_inherit = 'account.analytic.line' | ||
|
||
ticket_id = fields.Many2one( | ||
comodel_name='helpdesk.ticket', | ||
string='Ticket', | ||
groups="helpdesk_mgmt.group_helpdesk_user", | ||
) | ||
ticket_partner_id = fields.Many2one( | ||
comodel_name='res.partner', | ||
related="ticket_id.partner_id", | ||
string="Ticket partner", | ||
store=True, | ||
groups="helpdesk_mgmt.group_helpdesk_user", | ||
) | ||
|
||
@api.onchange("ticket_id") | ||
def onchange_ticket_id(self): | ||
for record in self: | ||
record.project_id = record.ticket_id.project_id | ||
record.task_id = record.ticket_id.task_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
To configure this module, you need to: | ||
|
||
#. Allow Timesheet for a Helpdesk's Team | ||
#. Set a Default Analytic Account (optional) | ||
#. 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 Default Analytic Account for that team (optional). | ||
#. Select a Project for that team (optional). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This module add Timesheet funcionality in Helpdesk module. | ||
This module adds Timesheet funcionality in Helpdesk module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#. 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 Analytic Account you will need select an Analytic Account for the Ticket to show the Timesheet Table. | ||
#. If there is not a Default Project you will need select a Project for the Ticket to show the Timesheet Table. |
10 changes: 10 additions & 0 deletions
10
helpdesk_mgmt_timesheet/security/helpdesk_mgmt_timesheet_security.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<data noupdate="0"> | ||
<record id="helpdesk_mgmt.group_helpdesk_user_own" model="res.groups"> | ||
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_user'))]"/> | ||
</record> | ||
</data> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
############################################################################### | ||
# For copyright and license notices, see __manifest__.py file in root directory | ||
############################################################################### | ||
from . import tests_helpdesk_ticket | ||
from . import test_helpdesk_mgmt_timesheet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.