From af008d1e3fcc4a5f8394e0d078305a2dfdc2a598 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 20 Nov 2008 18:19:29 +0100 Subject: [PATCH] improved_view bzr revid: fp@tinyerp.com-20081120171929-pl0mlxl96f8ty9x1 --- addons/account/account.py | 2 +- addons/account/wizard/wizard_state_open.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index f3be0d159ab..9d85b4a9188 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -790,7 +790,7 @@ class account_move(osv.osv): def button_cancel(self, cr, uid, ids, context={}): for line in self.browse(cr, uid, ids, context): if not line.journal_id.update_posted: - raise osv.except_osv(_('Error !'), _('You can not modify a posted entry of this journal !')) + raise osv.except_osv(_('Error !'), _('You can not modify a posted entry of this journal !\nYou should mark the journal to allow canceling entries.')) if len(ids): cr.execute('update account_move set state=%s where id in ('+','.join(map(str,ids))+')', ('draft',)) return True diff --git a/addons/account/wizard/wizard_state_open.py b/addons/account/wizard/wizard_state_open.py index 87ba88e9157..bab81b33094 100644 --- a/addons/account/wizard/wizard_state_open.py +++ b/addons/account/wizard/wizard_state_open.py @@ -47,7 +47,7 @@ class wiz_state_open(wizard.interface): states = { 'init': { 'actions': [], - 'result': {'type':'form', 'arch':form, 'fields':fields, 'state':[('yes','Yes'),('end','No')]} + 'result': {'type':'form', 'arch':form, 'fields':fields, 'state':[('end','No','gtk-no'),('yes','Yes','gtk-yes')]} }, 'yes': { 'actions': [_change_inv_state],