From ce784ae93330aecf3008d2686c20829d730d7bd7 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Fri, 5 Feb 2016 12:32:26 +0100 Subject: [PATCH] [FIX] account: default value of refund_sequence boolean on journal is False, as the most common practice seems to share the same numbering for invoices and refunds --- addons/account/models/account.py | 2 +- addons/account/models/chart_template.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index cc5fc752c0c..8e80a8f7616 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -235,7 +235,7 @@ class AccountJournal(models.Model): company_id = fields.Many2one('res.company', string='Company', required=True, index=1, default=lambda self: self.env.user.company_id, help="Company related to this journal") - refund_sequence = fields.Boolean(string='Dedicated Refund Sequence', help="Check this box if you don't want to share the same sequence for invoices and refunds made from this journal", default=True) + refund_sequence = fields.Boolean(string='Dedicated Refund Sequence', help="Check this box if you don't want to share the same sequence for invoices and refunds made from this journal", default=False) inbound_payment_method_ids = fields.Many2many('account.payment.method', 'account_journal_inbound_payment_method_rel', 'journal_id', 'inbound_payment_method', domain=[('payment_type', '=', 'inbound')], string='Debit Methods', default=lambda self: self._default_inbound_payment_methods(), diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 24f39962cdb..5b5cf98497b 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -191,7 +191,6 @@ class AccountChartTemplate(models.Model): 'company_id': company.id, 'default_credit_account_id': _get_default_account(journal, 'credit'), 'default_debit_account_id': _get_default_account(journal, 'debit'), - 'refund_sequence': True, 'show_on_dashboard': journal['favorite'], } journal_data.append(vals)