[FIX] I should wake up !
authorAlexis de Lattre <alexis@via.ecp.fr>
Thu, 7 Feb 2013 14:26:27 +0000 (15:26 +0100)
committerAlexis de Lattre <alexis@via.ecp.fr>
Thu, 7 Feb 2013 14:26:27 +0000 (15:26 +0100)
bzr revid: alexis@via.ecp.fr-20130207142627-q2ryc48w64gm9qwi

addons/account/wizard/account_validate_account_move.py

index 77afda7..00aecec 100644 (file)
@@ -34,7 +34,7 @@ class validate_account_move(osv.osv_memory):
         if context is None:
             context = {}
         data = self.read(cr, uid, ids[0], context=context)
-        ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_ids','in',tuple(data['journal_ids'])),('period_ids','in',tuple(data['period_ids']))])
+        ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','in',tuple(data['journal_ids'])),('period_id','in',tuple(data['period_ids']))])
         if not ids_move:
             raise osv.except_osv(_('Warning!'), _('Specified journals do not have any account move entries in draft state for the specified periods.'))
         obj_move.button_validate(cr, uid, ids_move, context=context)