diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 2a7922c13b2..8380a19b411 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -251,8 +251,8 @@ class account_cash_statement(osv.osv): statement = statement_pool.browse(cr, uid, ids[0]) if not self._user_allow(cr, uid, ids, statement, context={}): - raise osv.except_osv(_('Error !'), _('User %s have no rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name))) - + raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name))) + number = self.pool.get('ir.sequence').get(cr, uid, statement.journal_id.sequence_id.code) if len(statement.starting_details_ids) > 0: diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 77bc6a52b2e..053dfb0b651 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1131,18 +1131,18 @@ form - - Checks Register - ir.actions.act_window - account.move.line - form - tree,form - - - [('journal_id.type', '=', 'bank')] - - - + + + + + + + + + + + + diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml index 3f4ebd1b160..4f0e6e12ac1 100644 --- a/addons/account_voucher/voucher_view.xml +++ b/addons/account_voucher/voucher_view.xml @@ -72,7 +72,7 @@ - + account.voucher.select account.voucher search @@ -114,7 +114,7 @@ tree,form [('journal_id.type','=','sale')] - + @@ -127,7 +127,7 @@ tree,form [('journal_id.type','=','purchase')] - + @@ -139,10 +139,24 @@ form tree,form - + + + Cheque Register + ir.actions.act_window + account.voucher + form + tree,form + + + [('journal_id.type', '=', 'bank')] + + + + +