[IMP] kept periods on single line
[odoo/odoo.git] / addons / account / wizard / account_unreconcile.py
index 88b58b6..0e6c38f 100644 (file)
@@ -31,7 +31,7 @@ class account_unreconcile(osv.osv_memory):
             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()
 
@@ -41,12 +41,12 @@ class account_unreconcile_reconcile(osv.osv_memory):
 
     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()