Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_liquidacion_tareas
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 f91e5b46
authored
2021-04-10 14:01:25 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cambio en base de liquidacion
1 parent
2979d722
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
models/liquidacionestareas.py
models/liquidacionestareas.py
View file @
f91e5b4
...
@@ -70,7 +70,7 @@ class hdgt_liquidacionestareas(models.Model):
...
@@ -70,7 +70,7 @@ class hdgt_liquidacionestareas(models.Model):
hasta1
=
"{} 23:59:59"
.
format
(
hasta
)
hasta1
=
"{} 23:59:59"
.
format
(
hasta
)
#import ipdb; ipdb.set_trace()
#import ipdb; ipdb.set_trace()
tareas
=
self
.
env
[
'hgt.tarea'
]
.
search
([(
'ejecutor'
,
'='
,
usuario
),(
'
write_date'
,
'>'
,
desde1
),(
'write_date
'
,
'<'
,
hasta1
)])
tareas
=
self
.
env
[
'hgt.tarea'
]
.
search
([(
'ejecutor'
,
'='
,
usuario
),(
'
inicio'
,
'>'
,
desde1
),(
'inicio
'
,
'<'
,
hasta1
)])
for
tarea
in
tareas
.
ids
:
for
tarea
in
tareas
.
ids
:
nva_lin
=
self
.
env
[
'hgt.linea_tarea'
]
.
create
({
nva_lin
=
self
.
env
[
'hgt.linea_tarea'
]
.
create
({
...
@@ -101,7 +101,7 @@ class hdgt_liquidacionestareas(models.Model):
...
@@ -101,7 +101,7 @@ class hdgt_liquidacionestareas(models.Model):
tar
.
tarea
.
horas_liquidadas
=
tar
.
minutos_reales
tar
.
tarea
.
horas_liquidadas
=
tar
.
minutos_reales
tar
.
tarea
.
liquidado
=
True
tar
.
tarea
.
liquidado
=
True
else
:
else
:
raise
UserError
(
'Alguna de estas tareas ya fue liquidada previamente
'
)
raise
UserError
(
'Alguna de estas tareas ya fue liquidada previamente
\n
{}'
.
format
(
tar
.
tarea
.
display_name
)
)
def
volver_borrador
(
self
):
def
volver_borrador
(
self
):
self
.
estado
=
'borrador'
self
.
estado
=
'borrador'
...
...
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