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 15027215
authored
2022-11-27 21:47:53 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se agrega usuario flexible
1 parent
75af94db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
models/incidencia.py
views/incidencia_view.xml
models/incidencia.py
View file @
1502721
...
@@ -89,7 +89,9 @@ class hgt_soporte_incidencia(models.Model):
...
@@ -89,7 +89,9 @@ class hgt_soporte_incidencia(models.Model):
default
=
"borrador"
,
default
=
"borrador"
,
readonly
=
True
)
readonly
=
True
)
usuario
=
fields
.
Char
(
string
=
'Usuario'
,
default
=
lambda
self
:
self
.
env
.
user
.
display_name
,
readonly
=
True
)
def
registrar_mensaje
(
self
,
mens
):
def
registrar_mensaje
(
self
,
mens
):
text
=
mens
.
si_mensaje
text
=
mens
.
si_mensaje
...
@@ -148,7 +150,8 @@ class hgt_soporte_incidencia(models.Model):
...
@@ -148,7 +150,8 @@ class hgt_soporte_incidencia(models.Model):
'si_descripcion'
:
self
.
si_descripcion
,
'si_descripcion'
:
self
.
si_descripcion
,
'in_id_si'
:
self
.
id
,
'in_id_si'
:
self
.
id
,
'cliente_URL'
:
URL_local
,
'cliente_URL'
:
URL_local
,
'database'
:
database
'database'
:
database
,
'usuario'
:
self
.
si_responsable
.
display_name
,
}
}
}
}
...
...
views/incidencia_view.xml
View file @
1502721
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<field
name=
"si_descripcion"
/>
<field
name=
"si_descripcion"
/>
<field
name=
"estado"
/>
<field
name=
"estado"
/>
<field
name=
"si_fecha"
/>
<field
name=
"si_fecha"
/>
<field
name=
"usuario"
/>
<!--<field name="si_cerrada" />-->
<!--<field name="si_cerrada" />-->
<!-- <field name="si_url" widget="url"/> -->
<!-- <field name="si_url" widget="url"/> -->
<!-- <field name="si_descripcion"/> -->
<!-- <field name="si_descripcion"/> -->
...
...
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