From 0debcdd60aa73b4cccae39e755d7b9dd6bb4cc56 Mon Sep 17 00:00:00 2001 From: Laetitia Gangloff Date: Thu, 19 Feb 2015 14:12:14 +0100 Subject: [PATCH] Update string and help of entry_posted checkbox --- account_default_draft_move/account.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/account_default_draft_move/account.py b/account_default_draft_move/account.py index b7cd25bd6..2822bffea 100644 --- a/account_default_draft_move/account.py +++ b/account_default_draft_move/account.py @@ -66,3 +66,17 @@ class AccountMove(orm.Model): 'SET state=%s ' 'WHERE id IN %s', ('draft', tuple(ids),)) return True + + +class AccountJournal(orm.Model): + _inherit = 'account.journal' + + def __init__(self, pool, cr): + super(AccountJournal, self).__init__(pool, cr) + # update help of entry_posted flag + self._columns['entry_posted'].string = 'Skip \'Draft\' State' + self._columns['entry_posted'].help = \ + """Check this box if you don't want new journal entries +to pass through the 'draft' state and instead goes directly +to the 'posted state' without any manual validation.""" + return