From 86e2e481b129d672601dabde874d99ad8a17cfa6 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Wed, 8 Sep 2010 16:46:30 +0200 Subject: [PATCH] [IMP] account: usability changes (draft state on account_move) bzr revid: qdp-launchpad@tinyerp.com-20100908144630-x3vicd9i63melium --- addons/account/account.py | 4 ++-- addons/account/account_view.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index df54affe012..c37892bad97 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1075,8 +1075,8 @@ class account_move(osv.osv): 'ref': fields.char('Reference', size=64), 'period_id': fields.many2one('account.period', 'Period', required=True, states={'posted':[('readonly',True)]}), 'journal_id': fields.many2one('account.journal', 'Journal', required=True, states={'posted':[('readonly',True)]}), - 'state': fields.selection([('draft','Draft'), ('posted','Posted')], 'State', required=True, readonly=True, - help='When new account move is created the state will be \'Draft\'. When all the payments are done it will be in \'Posted\' state.'), + 'state': fields.selection([('draft','Unposted'), ('posted','Posted')], 'State', required=True, readonly=True, + help='All manually created new journal entry are usually in the state \'Unposted\', but you can set the option to skip that state on the related journal. In that case, they will be behave as journal entries automatically created by the system on document validation (invoices, bank statements...) and will be created in \'Posted\' state.'), 'line_id': fields.one2many('account.move.line', 'move_id', 'Entries', states={'posted':[('readonly',True)]}), 'to_check': fields.boolean('To Review', help='Check this box if you are unsure of that journal entry and if you want to note it as \'to be reviewed\' by an accounting expert.'), 'partner_id': fields.related('line_id', 'partner_id', type="many2one", relation="res.partner", string="Partner"), diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 47b675386f6..00e4bf7ab3b 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1075,8 +1075,8 @@ + - - +