|
@ -2,10 +2,10 @@ |
|
|
# Copyright (C) 2018-TODAY ACSONE SA/NV (<https://www.acsone.eu>). |
|
|
# Copyright (C) 2018-TODAY ACSONE SA/NV (<https://www.acsone.eu>). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
|
import odoo |
|
|
|
|
|
|
|
|
from odoo.addons.point_of_sale.tests.common import TestPointOfSaleCommon |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestTransactions(odoo.tests.TransactionCase): |
|
|
|
|
|
|
|
|
class TestTransactions(TestPointOfSaleCommon): |
|
|
|
|
|
|
|
|
def test_matching(self): |
|
|
def test_matching(self): |
|
|
card_journal_id = self.env['account.journal'].create({ |
|
|
card_journal_id = self.env['account.journal'].create({ |
|
@ -16,6 +16,7 @@ class TestTransactions(odoo.tests.TransactionCase): |
|
|
}).id |
|
|
}).id |
|
|
cash_journal_id = 0 |
|
|
cash_journal_id = 0 |
|
|
pos_order = { |
|
|
pos_order = { |
|
|
|
|
|
'pos_session_id': self.pos_order_session0.id, |
|
|
'statement_ids': [ |
|
|
'statement_ids': [ |
|
|
(0, 0, { |
|
|
(0, 0, { |
|
|
'name': 'Payment1', |
|
|
'name': 'Payment1', |
|
|