~therp-nl/account-invoicing/7.0-account_cash_discount

« back to all changes in this revision

Viewing changes to account_invoice_force_number/invoice.py

  • Committer: alexandre.fayolle at camptocamp
  • Author(s): alex.comba at agilebg
  • Date: 2013-09-24 08:16:49 UTC
  • mfrom: (18.5.6 imp_account_invoice_force_number_7)
  • Revision ID: alexandre.fayolle@camptocamp.com-20130924081649-17c9hzco62of2xm3
[MRG] add account_invoice_force_number

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
##############################################################################
3
 
#    
4
 
#    Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
 
3
#
5
4
#    Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
6
 
#    All Rights Reserved
 
5
#    Copyright (C) 2011-2013 Agile Business Group sagl
 
6
#    (<http://www.agilebg.com>)
 
7
#    @author Lorenzo Battistini <lorenzo.battistini@agilebg.com>
 
8
#    Ported to OpenERP 7.0 by Alex Comba <alex.comba@agilebg.com>
7
9
#
8
10
#    This program is free software: you can redistribute it and/or modify
9
11
#    it under the terms of the GNU Affero General Public License as published
20
22
#
21
23
##############################################################################
22
24
 
23
 
from osv import fields, osv
24
 
 
25
 
class account_invoice(osv.osv):
 
25
from openerp.osv import fields, orm
 
26
 
 
27
 
 
28
class account_invoice(orm.Model):
26
29
    _inherit = "account.invoice"
27
30
    _columns = {
28
 
        'internal_number': fields.char('Invoice Number', size=32, readonly=True, states={'draft':[('readonly',False)]}),
29
 
        }
30
 
account_invoice()
 
31
        'internal_number': fields.char(
 
32
            'Invoice Number', size=32, readonly=True,
 
33
            states={'draft': [('readonly', False)]}),
 
34
    }