From 8a9ce7505e5662f88941be92403979bc4e5bb122 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Tue, 20 Oct 2015 15:55:08 +0200 Subject: [PATCH] [IMP] account: default order of the journals in the accounting dashboard should be sale,purchase,bank,cash --- addons/account/models/account.py | 2 +- addons/account/models/chart_template.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 9f50d250639..37f8100b157 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -218,7 +218,7 @@ class AccountJournal(models.Model): help="This field contains the information related to the numbering of the journal entries of this journal.", required=True, copy=False) refund_sequence_id = fields.Many2one('ir.sequence', string='Refund Entry Sequence', help="This field contains the information related to the numbering of the refund entries of this journal.", copy=False) - sequence = fields.Integer(help='Used to order Journals in the dashboard view') + sequence = fields.Integer(help='Used to order Journals in the dashboard view', default=10) #groups_id = fields.Many2many('res.groups', 'account_journal_group_rel', 'journal_id', 'group_id', string='Groups') currency_id = fields.Many2one('res.currency', help='The currency used to enter statement', string="Currency", oldname='currency') diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index a269330b5e7..63f73a334da 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -171,6 +171,7 @@ class AccountChartTemplate(models.Model): 'default_debit_account_id': _get_default_account(journal, 'debit'), 'refund_sequence': True, 'show_on_dashboard': journal['favorite'], + 'sequence': journal['sequence'] } journal_data.append(vals) return journal_data @@ -758,6 +759,7 @@ class WizardMultiChartsAccounts(models.TransientModel): 'type': acc.account_type, 'company_id': company.id, 'currency_id': acc.currency_id.id, + 'sequence': 10 })