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 - - -