From b711318924b9d42957679cd534044ffbaefebc16 Mon Sep 17 00:00:00 2001 From: "Dharti Ratani (Open ERP)" Date: Thu, 20 Mar 2014 15:16:00 +0530 Subject: [PATCH] [IMP]Set the order of the sequence by date while posting journal entries from wizard Periodical Processing> Draft Entries> Post Journal Entries bzr revid: dhr@tinyerp.com-20140320094600-7s0cfsn2yz5jr2e6 --- addons/account/wizard/account_validate_account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_validate_account_move.py b/addons/account/wizard/account_validate_account_move.py index 4372ce12f04..a45d2c1969b 100644 --- a/addons/account/wizard/account_validate_account_move.py +++ b/addons/account/wizard/account_validate_account_move.py @@ -34,7 +34,7 @@ class validate_account_move(osv.osv_memory): if context is None: context = {} data = self.browse(cr, uid, ids, context=context)[0] - ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','=',data.journal_id.id),('period_id','=',data.period_id.id)]) + ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','=',data.journal_id.id),('period_id','=',data.period_id.id)], order="date") if not ids_move: raise osv.except_osv(_('Warning!'), _('Specified journal does not have any account move entries in draft state for this period.')) obj_move.button_validate(cr, uid, ids_move, context=context)