# -*- coding: utf-8 -*- from openerp import models, fields class AccountInvoice(models.Model): _inherit = 'account.invoice' contract_id = fields.Many2one( 'account.analytic.account', string='Contract')