cobros.py 727 Bytes
# -*- coding: utf-8 -*-
#from odoo.exceptions import UserError
from odoo import models, fields, api
#from datetime import datetime

class vnt_cobros(models.Model):
    _name = 'vnt.cobros'

    co_cliente = fields.Many2one(
        string='Cliente',
        comodel_name='hgt.instituciones',
    )

    co_lin_deuda = fields.Many2many(
        string=u"Línea Deuda",
        comodel_name='vnt.linea_deuda',
        relation="cobro_lin_deuda",
    )

    co_resumen = fields.Text(
        string="Resumen",
    )

    co_total_deuda = fields.Float(
        string="Total Deuda",
    )

    co_total_interes = fields.Float(
        string=u"Total Interés",
    )

    co_total = fields.Float(
        string="Total",
    )