bzr revid: fp@tinyerp.com-20110918140159-r63shedt1vuilojs
This commit is contained in:
Fabien Pinckaers 2011-09-18 16:01:59 +02:00
parent c4047f3936
commit a32b8b85b9
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class purchase_order(osv.osv):
if s['state'] in ['draft','cancel']:
unlink_ids.append(s['id'])
else:
raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first! ') % _(dict(purchase_order.STATE_SELECTION).get(s['state'])))
raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first!'))
# TODO: temporary fix in 5.0, to remove in 5.2 when subflows support
# automatically sending subflow.delete upon deletion