summaryrefslogtreecommitdiff
path: root/addons/account_check_printing/tests
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-08-17 10:14:09 +0000
committerwan <wan@odoo.com>2020-08-21 07:46:07 +0000
commit8129aa40dbb236b693b21724ebf0e57bc59dbc8b (patch)
treef7d5059bcac1bdc2af0ffd9ad570251f5c9f9eef /addons/account_check_printing/tests
parenteb6a177a50128f2d78607fcff36aaf65e8a3034e (diff)
[IMP] account{,_check_printing}: usability
Task 2005940 account: * Use stored compute methods instead of default for {out,in}bound_payment_method_ids * Track is_move_sent in the chatter * Split 'Invoices' and 'Bills' in the smart button of payment form * Because account.payment.method can be shown on the res.partner form, we need to relax the security level to readonly for all users account_check_printing: * Add the preferred payment method for partners, with a related on account move allowing to do a group by and doing payments in batch * Add a constraint to forbid twice the same check number in the same journal * The amount in words is now readonly to prevent typos and mismatches with the amount in digits * Remove the field `check_number_int`. The check number is kept as Char so that '000012345' is not displayed (and printed) as '12,345' but it is parsed so that comparison and incrementation are possible. closes odoo/odoo#56179 Related: odoo/upgrade#1669 Related: odoo/enterprise#12527 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/account_check_printing/tests')
-rw-r--r--addons/account_check_printing/tests/test_print_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account_check_printing/tests/test_print_check.py b/addons/account_check_printing/tests/test_print_check.py
index 82222daea88..40996542a50 100644
--- a/addons/account_check_printing/tests/test_print_check.py
+++ b/addons/account_check_printing/tests/test_print_check.py
@@ -28,7 +28,7 @@ class TestPrintCheck(AccountTestInvoicingCommon):
self.company_data['default_journal_bank'].write({
'check_manual_sequencing': True,
- 'check_next_number': 42,
+ 'check_next_number': '00042',
})
# Create 10 customer invoices.
@@ -69,7 +69,7 @@ class TestPrintCheck(AccountTestInvoicingCommon):
self.company_data['default_journal_bank'].write({
'check_manual_sequencing': True,
- 'check_next_number': 42,
+ 'check_next_number': '00042',
})
# Create 10 refunds.