diff --git a/addons/account/wizard/account_fiscalyear_close.py b/addons/account/wizard/account_fiscalyear_close.py index 2f793b77d67..4ab6201b507 100644 --- a/addons/account/wizard/account_fiscalyear_close.py +++ b/addons/account/wizard/account_fiscalyear_close.py @@ -79,9 +79,9 @@ class account_fiscalyear_close(osv.osv_memory): if not new_journal.default_credit_account_id or not new_journal.default_debit_account_id: raise osv.except_osv(_('UserError'), _('The journal must have default credit and debit account')) - if not new_journal.centralisation: + if (not new_journal.centralisation) or new_journal.entry_posted: raise osv.except_osv(_('UserError'), - _('The journal must have centralised counterpart')) + _('The journal must have centralised counterpart without the Skipping draft state option checked!')) move_ids = obj_acc_move_line.search(cr, uid, [ ('journal_id', '=', new_journal.id), ('period_id.fiscalyear_id', '=', new_fyear.id)])