From 9b97f157b9c8fd165f9963993f21ddb85cf82017 Mon Sep 17 00:00:00 2001 From: Wajih-Wanis Date: Tue, 4 Nov 2025 10:10:06 +0100 Subject: [PATCH 1/2] [IMP] account: changed BATCH to PAY --- addons/account/models/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/company.py b/addons/account/models/company.py index fd3d289aa7b52..b54c97ce34c26 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -164,7 +164,7 @@ class ResCompany(models.Model): 'padding': 5, 'use_date_range': True, 'company_id': self.id, - 'prefix': 'BATCH/%(year)s/', + 'prefix': 'PAY/%(year)s/', }), ) From f73aa5fbddb5b465e61cef8bdec4cf2d2bedb065 Mon Sep 17 00:00:00 2001 From: Wajih-Wanis Date: Thu, 6 Nov 2025 11:07:53 +0100 Subject: [PATCH 2/2] [FIX] account: updated test to be inline with the new record value 'PAY' --- addons/account/tests/test_account_payment_register.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account/tests/test_account_payment_register.py b/addons/account/tests/test_account_payment_register.py index 71731d5e27fcf..c46e9f47f2a9a 100644 --- a/addons/account/tests/test_account_payment_register.py +++ b/addons/account/tests/test_account_payment_register.py @@ -204,7 +204,7 @@ def test_register_payment_single_batch_grouped_keep_open_lower_amount(self): })._create_payments() self.assertRecordValues(payments, [{ - 'memo': Like(f'BATCH/{self.current_year}/...'), + 'memo': Like(f'PAY/{self.current_year}/...'), 'payment_method_line_id': self.inbound_payment_method_line.id, }]) self.assertRecordValues(payments.move_id.line_ids.sorted('balance'), [ @@ -237,7 +237,7 @@ def test_register_payment_single_batch_grouped_keep_open_higher_amount(self): })._create_payments() self.assertRecordValues(payments, [{ - 'memo': Like(f'BATCH/{self.current_year}/...'), + 'memo': Like(f'PAY/{self.current_year}/...'), 'payment_method_line_id': self.inbound_payment_method_line.id, }]) self.assertRecordValues(payments.move_id.line_ids.sorted('balance'), [ @@ -272,7 +272,7 @@ def test_register_payment_single_batch_grouped_writeoff_lower_amount_debit(self) })._create_payments() self.assertRecordValues(payments, [{ - 'memo': Like(f'BATCH/{self.current_year}/...'), + 'memo': Like(f'PAY/{self.current_year}/...'), 'payment_method_line_id': self.inbound_payment_method_line.id, }]) self.assertRecordValues(payments.move_id.line_ids.sorted('balance'), [ @@ -315,7 +315,7 @@ def test_register_payment_single_batch_grouped_writeoff_higher_amount_debit(self })._create_payments() self.assertRecordValues(payments, [{ - 'memo': Like(f'BATCH/{self.current_year}/...'), + 'memo': Like(f'PAY/{self.current_year}/...'), 'payment_method_line_id': self.inbound_payment_method_line.id, }]) self.assertRecordValues(payments.move_id.line_ids.sorted('balance'), [