account_invoice.py 609 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. # For copyright and license notices, see __openerp__.py file in module root
  4. # directory
  5. ##############################################################################
  6. from openerp.osv import osv
  7. class invoice(osv.osv):
  8. _inherit = 'account.invoice'
  9. def clean_internal_number(self, cr, uid, ids, context=None):
  10. # We also clean reference for compatibility with argentinian localization
  11. self.write(cr, uid, ids, {'internal_number':False,'afip_document_number':False}, context=context)