parent
c4047f3936
commit
a32b8b85b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue