Commit 1d8a1857 by Maria Agustina

cobranzas terminado

1 parent ca0ab156
......@@ -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:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!