mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[MIG] account_reconcile_payment_order: Migration to 14.0
This commit is contained in:
@@ -98,6 +98,7 @@ Contributors
|
|||||||
|
|
||||||
* Pedro M. Baeza
|
* Pedro M. Baeza
|
||||||
* João Marques
|
* João Marques
|
||||||
|
* Carlos Roca
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Reconcile payment orders",
|
"name": "Reconcile payment orders",
|
||||||
"version": "13.0.1.0.1",
|
"version": "14.0.1.0.0",
|
||||||
"author": "Therp BV," "Tecnativa," "Odoo Community Association (OCA)",
|
"author": "Therp BV, Tecnativa, Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"website": "https://github.com/OCA/account-reconcile",
|
"website": "https://github.com/OCA/account-reconcile",
|
||||||
"category": "Invoicing Management",
|
"category": "Invoicing Management",
|
||||||
"summary": "Automatically propose all lines generated from payment orders",
|
"summary": "Automatically propose all lines generated from payment orders",
|
||||||
"depends": ["account_payment_order"],
|
"depends": ["account_payment_order", "account_reconciliation_widget"],
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"maintainers": ["pedrobaeza"],
|
"maintainers": ["pedrobaeza"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
|
|
||||||
* Pedro M. Baeza
|
* Pedro M. Baeza
|
||||||
* João Marques
|
* João Marques
|
||||||
|
* Carlos Roca
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<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>
|
<title>Reconcile payment orders</title>
|
||||||
<style type="text/css">
|
<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><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
||||||
<li>Pedro M. Baeza</li>
|
<li>Pedro M. Baeza</li>
|
||||||
<li>João Marques</li>
|
<li>João Marques</li>
|
||||||
|
<li>Carlos Roca</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
|||||||
"date": "2019-01-01",
|
"date": "2019-01-01",
|
||||||
"name": "Test line",
|
"name": "Test line",
|
||||||
"amount": 200, # 100 * 2
|
"amount": 200, # 100 * 2
|
||||||
|
"payment_ref": "payment",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -50,9 +51,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
|||||||
|
|
||||||
def test_reconcile_payment_order_bank(self):
|
def test_reconcile_payment_order_bank(self):
|
||||||
self.assertEqual(len(self.inbound_order.payment_line_ids), 2)
|
self.assertEqual(len(self.inbound_order.payment_line_ids), 2)
|
||||||
self.inbound_mode.write(
|
self.inbound_mode.write({"move_option": "line"})
|
||||||
{"offsetting_account": "bank_account", "move_option": "line"}
|
|
||||||
)
|
|
||||||
# Prepare payment order
|
# Prepare payment order
|
||||||
self.inbound_order.draft2open()
|
self.inbound_order.draft2open()
|
||||||
self.inbound_order.open2generated()
|
self.inbound_order.open2generated()
|
||||||
@@ -63,21 +62,9 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
|||||||
|
|
||||||
def test_reconcile_payment_order_transfer_account(self):
|
def test_reconcile_payment_order_transfer_account(self):
|
||||||
self.assertEqual(len(self.inbound_order.payment_line_ids), 2)
|
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(
|
self.inbound_mode.write(
|
||||||
{
|
{
|
||||||
"offsetting_account": "transfer_account",
|
"default_journal_ids": [(4, self.bank_journal.id)],
|
||||||
"transfer_account_id": receivable_account.id,
|
|
||||||
"transfer_journal_id": self.bank_journal.id,
|
|
||||||
"move_option": "line",
|
"move_option": "line",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user