__author__ = "Luis Manuel Angueira Blanco (Pexego)"

"""
Inheritance of account invoce to add some fields.
"""

from osv import osv, fields


class account_invoice(osv.osv):
    """
    Inheritance of account invoce to add some fields
    """
    _inherit = 'account.invoice'

    _columns = {
        'refund_invoices_description' : fields.text('Refund invoices description'),
        'origin_invoices_ids' : fields.many2many('account.invoice', 'account_invoice_refunds_rel', 'refund_invoice_id', 'original_invoice_id', 'Refund invoice',
            help='Links to original invoice which is referred by current refund invoice')
    }
    
account_invoice()

