Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_cobranzas
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 1d8a1857
authored
2021-07-26 10:15:10 -0300
by
Maria Agustina
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cobranzas terminado
1 parent
ca0ab156
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
models/__pycache__/cobros.cpython-36.pyc
models/cobros.py
models/__pycache__/cobros.cpython-36.pyc
View file @
1d8a185
No preview for this file type
models/cobros.py
View file @
1d8a185
...
...
@@ -93,13 +93,20 @@ class vnt_cobros(models.Model):
copy
=
False
)
# #dominio de clientes segun institucion
# @api.onchange('co_institucion')
# def onchange_co_institucion(self):
# result = {}
# result['domain'] = []
# ids = self.env[]
# result['domain'] = {'co_cliente': [('id', 'in', ids)]}
#dominio de clientes segun institucion
@api.onchange
(
'co_institucion'
)
def
onchange_co_institucion
(
self
):
if
self
.
co_institucion
:
result
=
{}
result
[
'domain'
]
=
[]
ids
=
self
.
co_institucion
.
cliente_fiscal
.
ids
else
:
result
=
{}
result
[
'domain'
]
=
[]
ids
=
self
.
env
[
'asw.cliente'
]
.
search
([])
ids
=
ids
.
ids
result
[
'domain'
]
=
{
'co_cliente'
:
[(
'id'
,
'in'
,
ids
)]}
return
result
def
seleccionar_todo
(
self
):
for
lin
in
self
.
co_lin_deuda
:
...
...
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