old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    Copyright (C) 2010-2012 Associazione OpenERP Italia
  #    (<http://www.openerp-italia.org>).
  #    Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
  #                    General contacts <info@kndati.lv>
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published by
  #    the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  
  from openerp.osv import osv, fields
  
  class AccountInvoice(osv.osv):
      ''' Override send invoice function 
      '''
      _inherit = 'account.invoice'
  
      def invoice_print(self, cr, uid, ids, context=None):
          ''' Override invoice_print function
          '''
          res = super(AccountInvoice, self).invoice_print(
              cr, uid, ids, context=context)
          
          # replace report name:
          res['report_name'] = 'custom_account_invoice'
          return res
          
  # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    Copyright (C) 2010-2012 Associazione OpenERP Italia
  #    (<http://www.openerp-italia.org>).
  #    Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
  #                    General contacts <info@kndati.lv>
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published by
  #    the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  
  from openerp.osv import osv, fields
  
  class AccountInvoice(osv.osv):
      ''' Override send invoice function 
      '''
      _inherit = 'account.invoice'
  
      def invoice_print(self, cr, uid, ids, context=None):
          ''' Override invoice_print function
          '''
          res = super(AccountInvoice, self).invoice_print(
              cr, uid, ids, context=context)
          
          # replace report name:
          res['report_name'] = 'custom_account_invoice_report'
          return res
          
  # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
  
subject: add correct report