diff --git a/addons/account/models/account_journal.py b/addons/account/models/account_journal.py index f957c058673..e13ddfc5196 100644 --- a/addons/account/models/account_journal.py +++ b/addons/account/models/account_journal.py @@ -115,7 +115,11 @@ class AccountJournal(models.Model): country_code = fields.Char(related='company_id.account_fiscal_country_id.code', readonly=True) refund_sequence = fields.Boolean(string='Dedicated Credit Note Sequence', help="Check this box if you don't want to share the same sequence for invoices and credit notes made from this journal", default=False) - payment_sequence = fields.Boolean(string='Dedicated Payment Sequence', help="Check this box if you don't want to share the same sequence on payments and bank transactions posted on this journal", default='_compute_payment_sequence') + payment_sequence = fields.Boolean( + string='Dedicated Payment Sequence', + compute='_compute_payment_sequence', readonly=False, store=True, precompute=True, + help="Check this box if you don't want to share the same sequence on payments and bank transactions posted on this journal", + ) sequence_override_regex = fields.Text(help="Technical field used to enforce complex sequence composition that the system would normally misunderstand.\n"\ "This is a regex that can include all the following capture groups: prefix1, year, prefix2, month, prefix3, seq, suffix.\n"\ "The prefix* groups are the separators between the year, month and the actual increasing sequence number (seq).\n"\