From cb951a24fc5d524c55e9a0f523dbf8a9e40e6691 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 17 Jun 2008 20:17:23 +0000 Subject: [PATCH] Improvements inmenus Translations by modules removed print statement bzr revid: fp@tinyerp.com-43cfc88dcbeb83ff469e68f1b08fe8eb62c998bb --- addons/account/account_move_line.py | 4 +-- addons/account/account_view.xml | 51 ----------------------------- addons/account/partner.py | 1 - addons/stock/stock.py | 4 +-- 4 files changed, 4 insertions(+), 56 deletions(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 609c67f70dc..a742c7ef84a 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -362,8 +362,8 @@ class account_move_line(osv.osv): ('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in accounting entry !'), ] - def _auto_init(self, cr): - super(account_move_line, self)._auto_init(cr) + def _auto_init(self, cr, context={}): + super(account_move_line, self)._auto_init(cr, context) cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = \'account_move_line_journal_id_period_id_index\'') if not cr.fetchone(): cr.execute('CREATE INDEX account_move_line_journal_id_period_id_index ON account_move_line (journal_id, period_id)') diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index bc5947a8d66..429eebe8527 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1452,57 +1452,6 @@ # Admin config --> - - - - Chart of accounts - ir.module.module - form - tree,form - [('category_id','=','Account charts')] - - - - - - VAT mode - ir.module.module - form - tree,form - [('category_id','=','VAT')] - - - - - - Set chart of accounts - module.upgrade - - - - - account.account - form - tree,form - - - - - account.fiscalyear - form - tree,form - - - - - account.journal - form - tree,form - - -