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 d82fa065
authored
2021-08-19 09:31:19 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1768 terminada
1 parent
542549e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
wizards/__pycache__/wizard_liquidacion_comprobante.cpython-36.pyc
wizards/wizard_liquidacion_comprobante.py
wizards/__pycache__/wizard_liquidacion_comprobante.cpython-36.pyc
View file @
d82fa06
No preview for this file type
wizards/wizard_liquidacion_comprobante.py
View file @
d82fa06
...
...
@@ -3,6 +3,7 @@ from datetime import datetime
class
hgt_liquidacion_comprobante
(
models
.
TransientModel
):
_name
=
"hgt.liquidacion_comprobante"
_inherit
=
[
'asw.generador_comprobante'
,
'asw.generador_comprobante_linea'
]
proovedor
=
fields
.
Many2one
(
string
=
'Proovedor'
,
...
...
@@ -37,7 +38,25 @@ class hgt_liquidacion_comprobante(models.TransientModel):
return
result
def
generar_comprobante_compra
(
self
):
#fx para generar c de c
cliente
=
self
.
proovedor
total
=
self
.
total_liquidacion
referencia
=
str
(
self
.
liquidacion
.
nombre
)
talonario
=
self
.
env
[
'asw.talonario'
]
.
search
([(
'tal_menu'
,
'='
,
'fac'
),(
'tal_tipo'
,
'='
,
'r'
)],
limit
=
1
)
comprob
=
self
.
generar_comprobante
(
talonario
,
cliente
,
total
,
referencia
)
referencia2
=
'PRODUCTO/SERVICIO'
linea
=
self
.
generar_linea_comprobante
(
referencia2
,
comprob
,
total
)
return
{
'type'
:
'ir.actions.act_window'
,
'res_model'
:
'asw.comprobante'
,
'view_mode'
:
'form'
,
'view_type'
:
'form'
,
'res_id'
:
comprob
.
id
,
'views'
:
[(
False
,
'form'
)],
'target'
:
'new'
,
}
...
...
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