account_invoice_line.py 621 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. # For copyright and license notices, see __openerp__.py file in root directory
  4. ##############################################################################
  5. from openerp import models, fields
  6. class AccountInvoiceLine(models.Model):
  7. _inherit = 'account.invoice.line'
  8. inv_state = fields.Selection(
  9. string='Invoice State',
  10. related='invoice_id.state',
  11. store=True)
  12. inv_date = fields.Date(
  13. string='Invoice Date',
  14. related='invoice_id.date_invoice',
  15. store=True)