context = {}
if context.get('active_ids', False):
obj_move_line._remove_move_reconcile(cr, uid, context['active_ids'], context=context)
- return {}
+ return {'type': 'ir.actions.act_window_close'}
account_unreconcile()
def trans_unrec_reconcile(self, cr, uid, ids, context=None):
obj_move_reconcile = self.pool.get('account.move.reconcile')
- rec_ids = context['active_ids']
if context is None:
context = {}
+ rec_ids = context['active_ids']
if rec_ids:
- obj_move_reconcile.unlink(cr, uid, rec_ids)
- return {}
+ obj_move_reconcile.unlink(cr, uid, rec_ids, context=context)
+ return {'type': 'ir.actions.act_window_close'}
account_unreconcile_reconcile()