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 332e9fbd
authored
2020-12-14 09:43:03 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
234
1 parent
39984729
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
models/__pycache__/lineatarea.cpython-36.pyc
models/__pycache__/tareas.cpython-36.pyc
models/lineatarea.py
models/tareas.py
models/__pycache__/lineatarea.cpython-36.pyc
View file @
332e9fb
No preview for this file type
models/__pycache__/tareas.cpython-36.pyc
View file @
332e9fb
No preview for this file type
models/lineatarea.py
View file @
332e9fb
...
@@ -65,15 +65,7 @@ class hgt_linea_tarea(models.Model):
...
@@ -65,15 +65,7 @@ class hgt_linea_tarea(models.Model):
tot
=
horas
*
precio
tot
=
horas
*
precio
record
.
subtotal
=
tot
record
.
subtotal
=
tot
@api.onchange
(
'inicio'
,
'cierre'
)
def
onchange_dominio_tarea
(
self
):
result
=
{}
result
[
'domain'
]
=
[]
i
=
self
.
inicio
c
=
self
.
cierre
ids
=
self
.
env
[
'hgt.tarea'
]
.
search
([(
'inicio2'
,
'>='
,
i
),(
'cierre2'
,
'<='
,
c
)])
result
[
'domain'
]
=
{
'tarea'
:
[(
'id'
,
'in'
,
ids
)]}
return
result
...
...
models/tareas.py
View file @
332e9fb
...
@@ -12,4 +12,6 @@ class hgt_tarea(models.Model):
...
@@ -12,4 +12,6 @@ class hgt_tarea(models.Model):
liquidado
=
fields
.
Boolean
(
liquidado
=
fields
.
Boolean
(
string
=
u'Liquidado?'
,
string
=
u'Liquidado?'
,
)
)
\ No newline at end of file
\ No newline at end of file
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