[IMP] account: default order of the journals in the accounting dashboard should be sale,purchase,bank,cash
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user