[MIG] account_reconcile_payment_order: Migration to 14.0

This commit is contained in:
CarlosRoca13
2022-03-30 14:36:16 +02:00
parent 2b77e60787
commit 076e954a31
5 changed files with 10 additions and 20 deletions

View File

@@ -98,6 +98,7 @@ Contributors
* Pedro M. Baeza
* João Marques
* Carlos Roca
Maintainers
~~~~~~~~~~~

View File

@@ -4,13 +4,13 @@
{
"name": "Reconcile payment orders",
"version": "13.0.1.0.1",
"author": "Therp BV," "Tecnativa," "Odoo Community Association (OCA)",
"version": "14.0.1.0.0",
"author": "Therp BV, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-reconcile",
"category": "Invoicing Management",
"summary": "Automatically propose all lines generated from payment orders",
"depends": ["account_payment_order"],
"depends": ["account_payment_order", "account_reconciliation_widget"],
"installable": True,
"maintainers": ["pedrobaeza"],
}

View File

@@ -3,3 +3,4 @@
* Pedro M. Baeza
* João Marques
* Carlos Roca

View File

@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>Reconcile payment orders</title>
<style type="text/css">
@@ -450,6 +450,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Pedro M. Baeza</li>
<li>João Marques</li>
<li>Carlos Roca</li>
</ul>
</li>
</ul>

View File

@@ -42,6 +42,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
"date": "2019-01-01",
"name": "Test line",
"amount": 200, # 100 * 2
"payment_ref": "payment",
},
),
],
@@ -50,9 +51,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
def test_reconcile_payment_order_bank(self):
self.assertEqual(len(self.inbound_order.payment_line_ids), 2)
self.inbound_mode.write(
{"offsetting_account": "bank_account", "move_option": "line"}
)
self.inbound_mode.write({"move_option": "line"})
# Prepare payment order
self.inbound_order.draft2open()
self.inbound_order.open2generated()
@@ -63,21 +62,9 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
def test_reconcile_payment_order_transfer_account(self):
self.assertEqual(len(self.inbound_order.payment_line_ids), 2)
receivable_account = self.env["account.account"].create(
{
"name": "Extra receivable account",
"code": "TEST_ERA",
"reconcile": True,
"user_type_id": (
self.env.ref("account.data_account_type_receivable").id
),
}
)
self.inbound_mode.write(
{
"offsetting_account": "transfer_account",
"transfer_account_id": receivable_account.id,
"transfer_journal_id": self.bank_journal.id,
"default_journal_ids": [(4, self.bank_journal.id)],
"move_option": "line",
}
)