mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Fix account_reconcile_model_strict_match_amount tests
Tests were broken after introduction of new commit on Odoo.
Since account.move.line.ref field was set as readonly, writing
a value on it did not set the value on account.move.ref (which
it's related to) anymore.
cf 38c13bbef3
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
# Copyright 2020 Camptocamp SA
|
# Copyright 2020 Camptocamp SA
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
||||||
|
from odoo.tests import tagged
|
||||||
|
|
||||||
from odoo.addons.account.tests.test_reconciliation_matching_rules import (
|
from odoo.addons.account.tests.test_reconciliation_matching_rules import (
|
||||||
TestReconciliationMatchingRules,
|
TestReconciliationMatchingRules,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@tagged("post_install", "-at_install")
|
||||||
class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules):
|
class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
@@ -16,7 +19,10 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
|||||||
cls.invoice_line_s_5 = cls._create_invoice_line(
|
cls.invoice_line_s_5 = cls._create_invoice_line(
|
||||||
150, cls.partner_s_3, "out_invoice"
|
150, cls.partner_s_3, "out_invoice"
|
||||||
)
|
)
|
||||||
cls.invoice_line_s_5.ref = "ABC001XYZ"
|
# Explicitly set the ref on the account.move after field on the line
|
||||||
|
# was defined as readonly and value is not written anymore
|
||||||
|
# cf https://github.com/odoo/odoo/commit/38c13bbef39e3e82a77cfd4a316be94280e3cee5 # noqa
|
||||||
|
cls.invoice_line_s_5.move_id.ref = "ABC001XYZ"
|
||||||
cls.invoice_line_s_6 = cls._create_invoice_line(
|
cls.invoice_line_s_6 = cls._create_invoice_line(
|
||||||
300, cls.partner_s_4, "out_invoice"
|
300, cls.partner_s_4, "out_invoice"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user