~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to account_4_2_l10n_ch/account_payment.py

account_indian is a branch of the trunk addons
make account_indian up to date with the trunk-extra-addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
 
from osv import osv, fields
3
 
 
4
 
class PaymentMode(osv.osv):
5
 
    _inherit = "payment.mode"
6
 
 
7
 
    def _auto_init(self, cr):
8
 
        super(PaymentMode, self)._auto_init(cr)
9
 
        cr.execute('ALTER TABLE payment_mode ALTER COLUMN account DROP NOT NULL')
10
 
        cr.commit()
11
 
 
12
 
PaymentMode()
13
 
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
14