diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index a2dc4256eba..b4dc73709e8 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -501,7 +501,7 @@ class account_voucher(osv.osv): def proforma_voucher(self, cr, uid, ids, context=None): self.action_move_line_create(cr, uid, ids, context=context) return True - #return {'type' : 'ir.actions.act_window_close' } + def action_cancel_draft(self, cr, uid, ids, context={}):