modify refund inv wizard: put warning msg to user if inv is in draft state & string add to account.account's link
bzr revid: mra@tinyerp.com-20081112084154-i2lj8vme70rxqvew
This commit is contained in:
parent
2c79483199
commit
5e5127c84b
|
@ -989,7 +989,7 @@
|
|||
<act_window
|
||||
domain="[('account_id', '=', active_id)]"
|
||||
id="act_account_acount_move_line_open"
|
||||
name=""
|
||||
name="Entries"
|
||||
context="{'account_id': active_id}"
|
||||
res_model="account.move.line"
|
||||
src_model="account.account"/>
|
||||
|
|
|
@ -62,7 +62,9 @@ class wiz_refund(wizard.interface):
|
|||
date = False
|
||||
period = False
|
||||
description = False
|
||||
for inv in pool.get('account.invoice').browse(cr, uid, data['ids']) :
|
||||
for inv in pool.get('account.invoice').browse(cr, uid, data['ids']):
|
||||
if inv.state == 'draft':
|
||||
raise wizard.except_wizard(_('Error !'), _('Can not %s draft invoice.') % (mode))
|
||||
if form['period'] :
|
||||
period = form['period']
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue