referencia_compra.py 491 Bytes
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions

class hgt_refcompra(models.Model):
    _name='hgt.refcompra'

    name = fields.Char(
        string="Nombre",
    )

    habilitado = fields.Boolean(
        string="Habilitado",
    )

    descripcion = fields.Text(
        string=u"Descripción",
    )

    comprobante = fields.Many2one(
        string=u'Comprobante',
        comodel_name='asw.comprobante',
        ondelete='set null',
        store=True,
    )