Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_soporte
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e01bb30d
authored
2022-11-28 10:14:05 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Horas insumidas
1 parent
363312a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
models/incidencia.py
views/incidencia_view.xml
models/incidencia.py
View file @
e01bb30
...
...
@@ -93,6 +93,10 @@ class hgt_soporte_incidencia(models.Model):
default
=
lambda
self
:
self
.
env
.
user
.
display_name
,
readonly
=
True
)
horas
=
fields
.
Float
(
string
=
'Horas insumida por soporte'
,
readonly
=
True
)
def
registrar_mensaje
(
self
,
mens
):
text
=
mens
.
si_mensaje
envia
=
mens
.
si_creador
...
...
views/incidencia_view.xml
View file @
e01bb30
...
...
@@ -60,15 +60,16 @@
<field
name=
"estado"
widget=
"statusbar"
readonly=
"1"
/>
<field
name=
"si_cerrada"
invisible=
"1"
/>
</header>
<group
col=
"
2
"
string=
"Incidencia"
>
<group
col=
"
4
"
string=
"Incidencia"
>
<field
name=
"si_name"
colspan=
"2"
/>
<!-- <field colspan="2" name="si_numero" readonly="1" /> -->
<field
colspan=
"4"
name=
"si_descripcion"
attrs=
"{'readonly':[('estado','!=', 'borrador')]}"
/>
<field
colspan=
"2"
name=
"si_fecha"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"si_descripcion"
attrs=
"{'readonly':[('estado','!=', 'borrador')]}"
/>
<field
colspan=
"2"
name=
"estado"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"si_responsabilidad"
readonly=
"1"
/>
<field
name=
"usuario"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"subida"
invisible=
"1"
/>
<field
name=
"horas"
/>
</group>
<group
col=
"2"
string=
"Mensajes"
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment