referencias.py
466 Bytes
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions
class asw_referencias(models.Model):
_name='asw.referencias'
name = fields.Char(
string="Nombre",
)
descripcion = fields.Text(
string=u"Descripción",
)
habilitada = fields.Boolean(
string="Habilitada"
)
factura = fields.Many2one(
string=u'Factura',
comodel_name='asw.comprobante',
ondelete='set null',
)