Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Arturo Jasso Origel
/
helpdesk
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5f45368
authored
Mar 06, 2023
by
Arturo Jasso Origel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se han agregado permisos y se han acomodado el dashboard para el conteo
parent
431e2cfa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
3 deletions
+34
-3
helpdesk_morsa/models/__init__.py
+1
-0
helpdesk_morsa/models/helpdesk_team.py
+1
-1
helpdesk_morsa/models/helpdesk_ticket.py
+1
-1
helpdesk_morsa/models/ticket_dashboard.py
+0
-0
helpdesk_morsa/security/groups.xml
+25
-1
helpdesk_morsa/views/odoo/helpdesk_team.xml
+3
-0
helpdesk_morsa/views/odoo/helpdesk_ticket.xml
+3
-0
No files found.
helpdesk_morsa/models/__init__.py
View file @
a5f45368
...
...
@@ -8,3 +8,4 @@ from . import helpdesk_team
from
.
import
helpdesk_ticket
from
.
import
helpdesk_settings
from
.
import
helpdesk_sla
from
.
import
ticket_dashboard
helpdesk_morsa/models/helpdesk_team.py
View file @
a5f45368
...
...
@@ -8,7 +8,7 @@ class HelpdeskTeamInherit(models.Model):
short_name
=
fields
.
Char
(
'Nombre corto'
,
copy
=
False
)
sequence_id
=
fields
.
Many2one
(
'ir.sequence'
,
string
=
"Sequencia"
,
copy
=
False
)
is_support_team
=
fields
.
Boolean
(
'Equipo de soporte'
)
team_admin_id
=
fields
.
Many2one
(
'res.users'
,
string
=
"Administrador del equipo"
)
@api.onchange
(
short_name
)
def
convert_short_name_upper
(
self
):
...
...
helpdesk_morsa/models/helpdesk_ticket.py
View file @
a5f45368
...
...
@@ -45,7 +45,7 @@ class HelpdeskTicket(models.Model):
common_scenery
=
fields
.
Char
(
"¿Qué escenarios son comunes a trabajar con esta transacción?"
)
module_impact
=
fields
.
Char
(
"¿Tu solicitud, impacta de algún modo a algún otro Módulo?"
)
system_id
=
fields
.
Many2one
(
'erp.system'
,
'Sistema'
)
team_admin_id
=
fields
.
Many2one
(
'res.users'
,
string
=
"Administrador del equipo"
,
related
=
'team_id.team_admin_id'
)
def
_get_color
(
self
):
...
...
helpdesk_morsa/models/ticket_dashboard.py
0 → 100644
View file @
a5f45368
This diff is collapsed.
Click to expand it.
helpdesk_morsa/security/groups.xml
View file @
a5f45368
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data
noupdate=
"1"
>
<data>
<record
id=
"ticket_auditor"
model=
"res.groups"
>
...
...
@@ -8,6 +8,29 @@
<field
name=
"name"
>
Auditor de tickets
</field>
</record>
<record
id=
"ticket_team_admin"
model=
"res.groups"
>
<field
name=
"category_id"
ref=
"sh_all_in_one_helpdesk.module_helpdesk_category"
/>
<field
name=
"name"
>
Administrador del equipo
</field>
<field
name=
"implied_ids"
eval=
"[(4, ref('sh_all_in_one_helpdesk.helpdesk_group_team_leader'))]"
/>
</record>
<record
model=
"ir.rule"
id=
"helpdesk_team_admin"
>
<field
name=
"name"
>
Helpdesk Administrador del equipo
</field>
<field
name=
"model_id"
ref=
"sh_all_in_one_helpdesk.model_helpdesk_team"
/>
<field
name=
"global"
eval=
"True"
/>
<field
name=
"domain_force"
>
['|',('team_admin_id','=',user.id),('team_admin_id','=',False)]
</field>
<field
name=
"groups"
eval=
"[(4, ref('helpdesk_morsa.ticket_team_admin'))]"
/>
</record>
<record
model=
"ir.rule"
id=
"helpdesk_ticket_team_admin"
>
<field
name=
"name"
>
Helpdesk Ticket Team Admin
</field>
<field
name=
"model_id"
ref=
"sh_all_in_one_helpdesk.model_helpdesk_ticket"
/>
<field
name=
"global"
eval=
"True"
/>
<field
name=
"domain_force"
>
['|',('team_admin_id','=',user.id),('team_admin_id','=',False)]
</field>
<field
name=
"groups"
eval=
"[(4, ref('helpdesk_morsa.ticket_team_admin'))]"
/>
</record>
</data>
</odoo>
\ No newline at end of file
helpdesk_morsa/views/odoo/helpdesk_team.xml
View file @
a5f45368
...
...
@@ -9,6 +9,9 @@
<xpath
expr=
"//field[@name='name']"
position=
"after"
>
<field
name=
"short_name"
required=
"1"
/>
</xpath>
<xpath
expr=
"//field[@name='team_head']"
position=
"after"
>
<field
name=
"team_admin_id"
/>
</xpath>
</field>
</record>
</data>
...
...
helpdesk_morsa/views/odoo/helpdesk_ticket.xml
View file @
a5f45368
...
...
@@ -7,6 +7,9 @@
<field
name=
"inherit_id"
ref=
"sh_all_in_one_helpdesk.helpdesk_ticket_form_view"
/>
<field
name=
"priority"
eval=
"17"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='team_head']"
position=
"after"
>
<field
name=
"team_admin_id"
/>
</xpath>
<xpath
expr=
"//field[@name='name']"
position=
"after"
>
<field
name=
"is_support"
invisible=
"1"
/>
<field
name=
"is_erp"
invisible=
"1"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment