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 79b0ebb3
authored
2020-12-10 15:13:10 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
avance
1 parent
d0d36694
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
21 deletions
models/__pycache__/master.cpython-36.pyc
models/master.py
views/vista_liquidaciones.xml
views/vista_maestro.xml
views/vista_tipocargo.xml
models/__pycache__/master.cpython-36.pyc
View file @
79b0ebb
No preview for this file type
models/master.py
View file @
79b0ebb
...
...
@@ -34,6 +34,9 @@ class hgt_masterliquidaciones(models.Model):
string
=
'Desde'
,
default
=
fields
.
Date
.
context_today
,
)
def
generar_liquidaciones
(
self
):
return
1
...
...
views/vista_liquidaciones.xml
View file @
79b0ebb
...
...
@@ -48,11 +48,11 @@
<h2>
Liquidación
<field
colspan=
"2"
nolabel=
"1"
name=
"nombre"
/></h2>
</group>
<group
col=
"2"
>
<field
colspan=
"2"
name=
"usuario"
/>
<field
colspan=
"2"
name=
"usuario"
readonly=
"1"
/>
</group>
<group
col=
"4"
>
<field
colspan=
"2"
name=
"desde"
/>
<field
colspan=
"2"
name=
"hasta"
/>
<field
colspan=
"2"
name=
"desde"
readonly=
"1"
/>
<field
colspan=
"2"
name=
"hasta"
readonly=
"1"
/>
</group>
<group
col=
"4"
>
<field
colspan=
"2"
name=
"total"
/>
...
...
@@ -61,11 +61,11 @@
<group
col=
"4"
string=
"Tareas"
>
<field
nolabel=
"1"
name=
"lineas_tareas"
>
<tree>
<field
name=
"state"
/>
<field
name=
"name"
/>
<field
name=
"minutos_reales"
sum=
'1'
/>
<field
name=
"state"
readonly=
"1"
/>
<field
name=
"name"
readonly=
"1"
/>
<field
name=
"minutos_reales"
sum=
'1'
readonly=
"1"
/>
<field
name=
"tipo_cargo"
/>
<field
name=
"subtotal"
sum=
'1'
/>
<field
name=
"subtotal"
sum=
'1'
readonly=
"1"
/>
</tree>
</field>
</group>
...
...
views/vista_maestro.xml
View file @
79b0ebb
...
...
@@ -9,6 +9,9 @@
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
<field
name=
"target"
>
current
</field>
<field
name=
"help"
type=
"html"
>
<p
class=
"oe_view_nocontent_create"
>
Cree el primer Maestro de Liquidaciones
</p>
</field>
</record>
<record
id=
"view_maestro_tree"
model=
"ir.ui.view"
>
...
...
@@ -35,20 +38,24 @@
<field
name=
"arch"
type=
"xml"
>
<form>
<group
col=
"2"
>
<field
colspan=
"2"
name=
"titulo"
/>
</group>
<group
col=
"4"
>
<field
colspan=
"2"
name=
"desde"
/>
<field
colspan=
"2"
name=
"hasta"
/>
</group>
<group
col=
"2"
string=
"Ejecutores"
>
<field
colspan=
"2"
nolabel=
"1"
name=
"ejecutores"
/>
</group>
<group
col=
"2"
string=
"Liquidaciones"
>
<field
colspan=
"2"
nolabel=
"1"
name=
"liquidaciones"
/>
</group>
<header>
<button
name=
"generar_liquidaciones"
class=
"oe_edit_only"
string=
"Generar Liquidaciones"
type=
"object"
/>
</header>
<sheet>
<group
col=
"2"
>
<field
colspan=
"2"
name=
"titulo"
/>
</group>
<group
col=
"4"
>
<field
colspan=
"2"
name=
"desde"
/>
<field
colspan=
"2"
name=
"hasta"
/>
</group>
<group
col=
"2"
string=
"Ejecutores"
>
<field
colspan=
"2"
nolabel=
"1"
name=
"ejecutores"
/>
</group>
<group
col=
"2"
string=
"Liquidaciones"
>
<field
colspan=
"2"
nolabel=
"1"
name=
"liquidaciones"
/>
</group>
</sheet>
</form>
</field>
</record>
...
...
views/vista_tipocargo.xml
View file @
79b0ebb
...
...
@@ -9,6 +9,9 @@
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
<field
name=
"target"
>
current
</field>
<field
name=
"help"
type=
"html"
>
<p
class=
"oe_view_nocontent_create"
>
Cree el primer Tipo de Cargo
</p>
</field>
</record>
<record
id=
"view_tipocargo_tree"
model=
"ir.ui.view"
>
...
...
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