Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/account/models/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
}),
)

Expand Down
8 changes: 4 additions & 4 deletions addons/account/tests/test_account_payment_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'), [
Expand Down Expand Up @@ -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'), [
Expand Down Expand Up @@ -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'), [
Expand Down Expand Up @@ -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'), [
Expand Down