Commit 792d1354 by Juan

Se mejora reporte de recibos

1 parent 54a13e55
No preview for this file type
......@@ -25,4 +25,16 @@ class asw_valores(models.Model):
],
related='val_cheque.che_estado',
store=True
)
\ No newline at end of file
)
val_reporte_linea = fields.Char(
string='Para reporte',
compute="_compute_val_reporte_linea",
readonle=True)
@api.depends('val_reporte_linea')
def _compute_val_reporte_linea(self):
for rec in self:
rec.val_reporte_linea = ''
if rec.val_tipo.tv_tipo in ["che","chr","chtr"]:
rec.val_reporte_linea = f"Nro. cheque: {rec.val_cheque.che_nro_cheque} - Banco: {rec.val_cheque.che_banco.display_name}"
No preview for this file type
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!