fix raise string deprecated in python 2.5
bzr revid: ced-0b69d2b3d88ebe2c98240b3ddeb6cb71c62ebace
This commit is contained in:
parent
5c3609a570
commit
f458474d50
|
@ -42,7 +42,7 @@ def _action_open_window(self, cr, uid, data, context):
|
|||
cr.execute('select default_credit_account_id from account_journal where id=%d', (form['journal_id'],))
|
||||
account_id = cr.fetchone()[0]
|
||||
if not account_id:
|
||||
raise 'You have to define the bank account\nin the journal definition for reconciliation.'
|
||||
raise Exception, 'You have to define the bank account\nin the journal definition for reconciliation.'
|
||||
return {
|
||||
'domain': "[('journal_id','=',%d), ('account_id','=',%d), ('state','<>','draft')]" % (form['journal_id'],account_id),
|
||||
'name': 'Saisie Standard',
|
||||
|
|
|
@ -202,7 +202,7 @@ class record:
|
|||
Must instanciate a fields list, field = (name,size)
|
||||
and update a local_values dict.
|
||||
"""
|
||||
raise "not implemented"
|
||||
raise Exception, "not implemented"
|
||||
|
||||
def generate(self):
|
||||
res=''
|
||||
|
|
|
@ -307,7 +307,7 @@ class stock_tracking(osv.osv):
|
|||
return res
|
||||
|
||||
def unlink(self, cr ,uid, ids):
|
||||
raise 'You can not remove a lot line !'
|
||||
raise Exception, 'You can not remove a lot line !'
|
||||
stock_tracking()
|
||||
|
||||
#----------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue