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 13.0
Co-Authored-By: Abraham Anes <abraham@studio73.es>
This commit is contained in:
committed by
CarlosRoca13
parent
4022ef5734
commit
5077757a48
@@ -14,13 +14,13 @@ Reconcile payment orders
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_payment_order
|
||||
:target: https://github.com/OCA/account-reconcile/tree/13.0/account_reconcile_payment_order
|
||||
:alt: OCA/account-reconcile
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/account-reconcile-12-0/account-reconcile-12-0-account_reconcile_payment_order
|
||||
:target: https://translation.odoo-community.org/projects/account-reconcile-13-0/account-reconcile-13-0-account_reconcile_payment_order
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/98/12.0
|
||||
:target: https://runbot.odoo-community.org/runbot/98/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -77,7 +77,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_payment_order%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_payment_order%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -97,6 +97,7 @@ Contributors
|
||||
* `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
* Pedro M. Baeza
|
||||
* João Marques
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
@@ -119,6 +120,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-pedrobaeza|
|
||||
|
||||
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_payment_order>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/13.0/account_reconcile_payment_order>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
{
|
||||
"name": "Reconcile payment orders",
|
||||
"version": "12.0.1.0.0",
|
||||
"version": "13.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"],
|
||||
"installable": True,
|
||||
"maintainers": ["pedrobaeza"],
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reconcile_payment_order
|
||||
# * account_reconcile_payment_order
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: <>\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -17,4 +17,3 @@ msgstr ""
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -8,20 +8,18 @@ msgstr ""
|
||||
"Project-Id-Version: bank-statement-reconcile (8.0)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-10-14 09:25+0000\n"
|
||||
"PO-Revision-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2021-02-16 07:24+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: German (http://www.transifex.com/oca/OCA-bank-statement-"
|
||||
"reconcile-8-0/language/de/)\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Bank Statement Line"
|
||||
#~ msgstr "Kontoauszugzeile"
|
||||
|
||||
@@ -8,20 +8,18 @@ msgstr ""
|
||||
"Project-Id-Version: bank-statement-reconcile (8.0)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-04-20 02:39+0000\n"
|
||||
"PO-Revision-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2021-02-16 07:24+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-"
|
||||
"reconcile-8-0/language/fr/)\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Bank Statement Line"
|
||||
#~ msgstr "Ligne de relevé bancaire"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reconcile_payment_order
|
||||
# * account_reconcile_payment_order
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -13,8 +13,8 @@ msgstr ""
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
|
||||
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
|
||||
@@ -8,20 +8,18 @@ msgstr ""
|
||||
"Project-Id-Version: bank-statement-reconcile (8.0)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-10-14 09:25+0000\n"
|
||||
"PO-Revision-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2021-02-16 07:24+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-statement-"
|
||||
"reconcile-8-0/language/it/)\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Bank Statement Line"
|
||||
#~ msgstr "Linea estratto conto"
|
||||
|
||||
@@ -8,20 +8,18 @@ msgstr ""
|
||||
"Project-Id-Version: bank-statement-reconcile (8.0)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-06-24 00:30+0000\n"
|
||||
"PO-Revision-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2021-02-16 07:25+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-bank-"
|
||||
"statement-reconcile-8-0/language/nl_NL/)\n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Bank Statement Line"
|
||||
#~ msgstr "Bankafschriftregel"
|
||||
|
||||
@@ -8,21 +8,19 @@ msgstr ""
|
||||
"Project-Id-Version: bank-statement-reconcile (8.0)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2015-08-19 00:32+0000\n"
|
||||
"PO-Revision-Date: 2021-02-16 07:25+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-"
|
||||
"reconcile-8-0/language/sl/)\n"
|
||||
"Language: sl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
|
||||
"%100==4 ? 2 : 3);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#. module: account_reconcile_payment_order
|
||||
#: model:ir.model,name:account_reconcile_payment_order.model_account_reconciliation_widget
|
||||
msgid "Account Reconciliation widget"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Bank Statement Line"
|
||||
#~ msgstr "Postavka bančnega izpiska"
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
* `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
* Pedro M. Baeza
|
||||
* João Marques
|
||||
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_payment_order"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-reconcile-12-0/account-reconcile-12-0-account_reconcile_payment_order"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/98/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/13.0/account_reconcile_payment_order"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-reconcile-13-0/account-reconcile-13-0-account_reconcile_payment_order"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/98/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>Payment orders that show up as one big transaction can be difficult for the
|
||||
accounting to handle if a transfer account is used. In this case, we need to
|
||||
reconcile this transaction with possibly hundreds of move lines, which can be a
|
||||
@@ -431,7 +431,7 @@ as a new type of reconciliation in this model.</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-reconcile/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_payment_order%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_payment_order%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -449,6 +449,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<li>Holger Brunn</li>
|
||||
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
||||
<li>Pedro M. Baeza</li>
|
||||
<li>João Marques</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -462,7 +463,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_payment_order">OCA/account-reconcile</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/13.0/account_reconcile_payment_order">OCA/account-reconcile</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Copyright 2019 Tecnativa - Pedro M. Baeza
|
||||
# Copyright 2021 Tecnativa - João Marques
|
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
|
||||
|
||||
from odoo.addons.account_payment_order.tests.test_payment_order_inbound import (
|
||||
@@ -15,19 +16,23 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
||||
[
|
||||
("type", "=", "bank"),
|
||||
"|",
|
||||
("company_id", "=", cls.env.user.company_id.id),
|
||||
("company_id", "=", cls.env.company.id),
|
||||
("company_id", "=", False),
|
||||
],
|
||||
limit=1,
|
||||
)
|
||||
# Create second invoice for being sure it handles the payment order
|
||||
cls.invoice2 = cls._create_customer_invoice()
|
||||
cls.partner2 = cls.env["res.partner"].create({"name": "Test partner 2",})
|
||||
cls.invoice2 = cls._create_customer_invoice(cls)
|
||||
cls.partner2 = cls.env["res.partner"].create({"name": "Test partner 2"})
|
||||
# Set correct partner in invoice
|
||||
cls.invoice2.partner_id = cls.partner2.id
|
||||
cls.invoice2.action_invoice_open()
|
||||
for line in cls.invoice2.line_ids:
|
||||
line.partner_id = cls.partner2.id
|
||||
cls.invoice2.payment_mode_id = cls.inbound_mode
|
||||
cls.invoice2.action_post()
|
||||
# Add to payment order using the wizard
|
||||
cls.env["account.invoice.payment.line.multi"].with_context(
|
||||
active_model="account.invoice", active_ids=cls.invoice2.ids,
|
||||
active_model="account.move", active_ids=cls.invoice2.ids,
|
||||
).create({}).run()
|
||||
# Prepare statement
|
||||
cls.statement = cls.env["account.bank.statement"].create(
|
||||
@@ -36,7 +41,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
||||
"date": "2019-01-01",
|
||||
"journal_id": cls.bank_journal.id,
|
||||
"line_ids": [
|
||||
(0, 0, {"date": "2019-01-01", "name": "Test line", "amount": 200,}),
|
||||
(0, 0, {"date": "2019-01-01", "name": "Test line", "amount": 230}),
|
||||
],
|
||||
}
|
||||
)
|
||||
@@ -44,7 +49,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",}
|
||||
{"offsetting_account": "bank_account", "move_option": "line"}
|
||||
)
|
||||
# Prepare payment order
|
||||
self.inbound_order.draft2open()
|
||||
@@ -80,7 +85,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
||||
self.inbound_order.open2generated()
|
||||
self.inbound_order.generated2uploaded()
|
||||
# Check widget result
|
||||
res = self.widget_obj.get_bank_statement_line_data(self.statement.line_ids.ids,)
|
||||
res = self.widget_obj.get_bank_statement_line_data(self.statement.line_ids.ids)
|
||||
proposition = res["lines"][0]["reconciliation_proposition"]
|
||||
self.assertEqual(len(proposition), 2)
|
||||
# Reconcile that entries and check again
|
||||
@@ -89,7 +94,7 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
||||
data=[
|
||||
{
|
||||
"type": "",
|
||||
"mv_line_ids": [proposition[0]["id"], proposition[1]["id"],],
|
||||
"mv_line_ids": [proposition[0]["id"], proposition[1]["id"]],
|
||||
"new_mv_line_dicts": [
|
||||
{
|
||||
"name": st_line_vals["name"],
|
||||
|
||||
Reference in New Issue
Block a user