Commit 1d8a1857 by Maria Agustina

cobranzas terminado

1 parent ca0ab156
...@@ -93,13 +93,20 @@ class vnt_cobros(models.Model): ...@@ -93,13 +93,20 @@ class vnt_cobros(models.Model):
copy=False copy=False
) )
# #dominio de clientes segun institucion #dominio de clientes segun institucion
# @api.onchange('co_institucion') @api.onchange('co_institucion')
# def onchange_co_institucion(self): def onchange_co_institucion(self):
# result = {} if self.co_institucion:
# result['domain'] = [] result = {}
# ids = self.env[] result['domain'] = []
# result['domain'] = {'co_cliente': [('id', 'in', ids)]} 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): def seleccionar_todo(self):
for lin in self.co_lin_deuda: 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!