New features to manage checks and managed them Odoo in latam countries where they are widely use. Own Checks Management --------------------- Extends 'Check Printing Base' module to manage own checks with more features: * allow using own checks that are not printed but filled manually by the user * allow to use deferred or electronic checks * printing is disabled * check number is set manually by the user * add an optional "Check Cash-In Date" for post-dated checks (deferred payments) * add a menu to track own checks Third Party Checks Management ----------------------------- Add new "Third party check Management" feature. There are 2 main Payment Methods additions: * New Third Party Checks: * allow the user create a check on the fly from a payment * create a third party check from a customer payment * Existing Third party check: * allow the user to reuse a Third party check already created * pay a vendor bill using an existing Third party check * move an existing checks between journals (i.e. move to Rejected) * Send/Receive again a check already used in a Vendor Bill/Customer INV * allow the user to do mass check transfers closes odoo/odoo#107163 X-original-commit: cbec68b414f5b87fe6e146487c532c9a174f40a3 Signed-off-by: William André (wan) <wan@odoo.com>
28 lines
1.5 KiB
Python
28 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
|
|
from odoo.tests.common import tagged
|
|
|
|
|
|
@tagged('post_install_l10n', 'post_install', '-at_install')
|
|
class L10nLatamCheckTest(AccountTestInvoicingCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls, chart_template_ref=None):
|
|
super().setUpClass(chart_template_ref=chart_template_ref)
|
|
|
|
chart_template = cls.company_data['company'].chart_template_id
|
|
|
|
cls.company_data_3 = cls.setup_company_data(
|
|
'company_3_data', chart_template=chart_template, **{'country_id': cls.env.ref('base.ar').id})
|
|
|
|
cls.bank_journal = cls.company_data_3['default_journal_bank']
|
|
# enable use electronic/deferred checks on bank journal
|
|
cls.bank_journal.l10n_latam_manual_checks = True
|
|
third_party_checks_journals = cls.env['account.journal'].search([('outbound_payment_method_line_ids.code', '=', 'new_third_party_checks'), ('inbound_payment_method_line_ids.code', '=', 'out_third_party_checks'), ('inbound_payment_method_line_ids.code', '=', 'new_third_party_checks')])
|
|
cls.third_party_check_journal = third_party_checks_journals[0]
|
|
cls.rejected_check_journal = third_party_checks_journals[1]
|
|
|
|
cls.assertTrue(cls.third_party_check_journal, 'Third party check journal was not created so we can run the tests')
|
|
cls.assertTrue(cls.rejected_check_journal, 'Rejected check journal was not created so we can run the tests')
|