From 60482c95eded9d4e161ada3687d806a1ae636cc0 Mon Sep 17 00:00:00 2001 From: cubells Date: Fri, 21 Sep 2018 13:10:07 +0200 Subject: [PATCH] [MIG] account_payment_order_return: Migration to 11.0 --- account_payment_order_return/README.rst | 73 ++- account_payment_order_return/__init__.py | 3 +- .../{__openerp__.py => __manifest__.py} | 5 +- .../i18n/account_payment_order_return.pot | 2 +- .../readme/CONTRIBUTORS.rst | 4 + .../readme/DESCRIPTION.rst | 4 + .../readme/INSTALL.rst | 2 + account_payment_order_return/readme/USAGE.rst | 7 + .../static/description/index.html | 445 ++++++++++++++++++ .../tests/__init__.py | 1 - .../test_account_payment_order_return.py | 7 +- .../{wizard => wizards}/__init__.py | 1 - .../account_payment_line_create.py | 3 +- .../account_payment_line_create_view.xml | 0 14 files changed, 523 insertions(+), 34 deletions(-) rename account_payment_order_return/{__openerp__.py => __manifest__.py} (82%) create mode 100644 account_payment_order_return/readme/CONTRIBUTORS.rst create mode 100644 account_payment_order_return/readme/DESCRIPTION.rst create mode 100644 account_payment_order_return/readme/INSTALL.rst create mode 100644 account_payment_order_return/readme/USAGE.rst create mode 100644 account_payment_order_return/static/description/index.html rename account_payment_order_return/{wizard => wizards}/__init__.py (81%) rename account_payment_order_return/{wizard => wizards}/account_payment_line_create.py (90%) rename account_payment_order_return/{wizard => wizards}/account_payment_line_create_view.xml (100%) diff --git a/account_payment_order_return/README.rst b/account_payment_order_return/README.rst index f977cf7ac..d46b13182 100644 --- a/account_payment_order_return/README.rst +++ b/account_payment_order_return/README.rst @@ -1,16 +1,40 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ============================ Account Payment Order Return ============================ +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github + :target: https://github.com/OCA/bank-payment/tree/11.0/account_payment_order_return + :alt: OCA/bank-payment +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_payment_order_return + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/97/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module adds a check in the wizard where move lines are imported into payment order. This check lets include in selection lines from invoices linked to a payment return. +**Table of contents** + +.. contents:: + :local: + Installation ============ @@ -28,36 +52,45 @@ Usage #. Fill other options. #. Click on button "Add All Move Lines". -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/173/9.0 - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Contributors ------------- -* Luis M. Ontalba +Authors +~~~~~~~ -Maintainer ----------- +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* Tecnativa + + * Luis M. Ontalba + * Vicent Cubells + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/bank-payment `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_order_return/__init__.py b/account_payment_order_return/__init__.py index 50e32ca47..211e83205 100644 --- a/account_payment_order_return/__init__.py +++ b/account_payment_order_return/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from . import wizard +from . import wizards diff --git a/account_payment_order_return/__openerp__.py b/account_payment_order_return/__manifest__.py similarity index 82% rename from account_payment_order_return/__openerp__.py rename to account_payment_order_return/__manifest__.py index d1d99ad0c..340d1c779 100644 --- a/account_payment_order_return/__openerp__.py +++ b/account_payment_order_return/__manifest__.py @@ -1,10 +1,9 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - Luis M. Ontalba # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { 'name': 'Account Payment Order Return', - 'version': '9.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Banking addons', 'author': 'Tecnativa, ' 'Odoo Community Association (OCA)', @@ -14,7 +13,7 @@ 'account_payment_order', ], 'data': [ - 'wizard/account_payment_line_create_view.xml', + 'wizards/account_payment_line_create_view.xml', ], 'license': 'AGPL-3', 'installable': True, diff --git a/account_payment_order_return/i18n/account_payment_order_return.pot b/account_payment_order_return/i18n/account_payment_order_return.pot index b8d75a482..a341cc9df 100644 --- a/account_payment_order_return/i18n/account_payment_order_return.pot +++ b/account_payment_order_return/i18n/account_payment_order_return.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/account_payment_order_return/readme/CONTRIBUTORS.rst b/account_payment_order_return/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..60be6ab84 --- /dev/null +++ b/account_payment_order_return/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Tecnativa + + * Luis M. Ontalba + * Vicent Cubells diff --git a/account_payment_order_return/readme/DESCRIPTION.rst b/account_payment_order_return/readme/DESCRIPTION.rst new file mode 100644 index 000000000..10e16c164 --- /dev/null +++ b/account_payment_order_return/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module adds a check in the wizard where move lines are imported into +payment order. +This check lets include in selection lines from invoices linked to a +payment return. diff --git a/account_payment_order_return/readme/INSTALL.rst b/account_payment_order_return/readme/INSTALL.rst new file mode 100644 index 000000000..b52d23104 --- /dev/null +++ b/account_payment_order_return/readme/INSTALL.rst @@ -0,0 +1,2 @@ +This module is auto-installed when you install *account_payment_return* and +*account_payment_order*. diff --git a/account_payment_order_return/readme/USAGE.rst b/account_payment_order_return/readme/USAGE.rst new file mode 100644 index 000000000..a8591d03d --- /dev/null +++ b/account_payment_order_return/readme/USAGE.rst @@ -0,0 +1,7 @@ +#. Go to Invoicing > Payments > Debit Orders. +#. Create a new record. +#. Click on button "Create Payment Lines fron Journal Items" to open the + wizard. +#. Click on the "Include move lines from returns " check. +#. Fill other options. +#. Click on button "Add All Move Lines". diff --git a/account_payment_order_return/static/description/index.html b/account_payment_order_return/static/description/index.html new file mode 100644 index 000000000..450f2d9ec --- /dev/null +++ b/account_payment_order_return/static/description/index.html @@ -0,0 +1,445 @@ + + + + + + +Account Payment Order Return + + + +
+

Account Payment Order Return

+ + +

Beta License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runbot

+

This module adds a check in the wizard where move lines are imported into +payment order. +This check lets include in selection lines from invoices linked to a +payment return.

+

Table of contents

+ +
+

Installation

+

This module is auto-installed when you install account_payment_return and +account_payment_order.

+
+
+

Usage

+
    +
  1. Go to Invoicing > Payments > Debit Orders.
  2. +
  3. Create a new record.
  4. +
  5. Click on button “Create Payment Lines fron Journal Items” to open the +wizard.
  6. +
  7. Click on the “Include move lines from returns ” check.
  8. +
  9. Fill other options.
  10. +
  11. Click on button “Add All Move Lines”.
  12. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/bank-payment project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_payment_order_return/tests/__init__.py b/account_payment_order_return/tests/__init__.py index 1e2614008..ade564e41 100644 --- a/account_payment_order_return/tests/__init__.py +++ b/account_payment_order_return/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 from . import test_account_payment_order_return diff --git a/account_payment_order_return/tests/test_account_payment_order_return.py b/account_payment_order_return/tests/test_account_payment_order_return.py index f8bbedc93..cb73d4507 100644 --- a/account_payment_order_return/tests/test_account_payment_order_return.py +++ b/account_payment_order_return/tests/test_account_payment_order_return.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - Luis M. Ontalba # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 -from openerp.tests import common -from openerp import fields +from odoo.tests import common +from odoo import fields class TestAccountPaymentOrderReturn(common.SavepointCase): @@ -51,7 +50,7 @@ class TestAccountPaymentOrderReturn(common.SavepointCase): }) def test_global(self): - self.invoice.signal_workflow('invoice_open') + self.invoice.action_invoice_open() wizard_o = self.env['account.payment.line.create'] context = wizard_o._context.copy() context.update({ diff --git a/account_payment_order_return/wizard/__init__.py b/account_payment_order_return/wizards/__init__.py similarity index 81% rename from account_payment_order_return/wizard/__init__.py rename to account_payment_order_return/wizards/__init__.py index 88586a32d..6cfe26506 100644 --- a/account_payment_order_return/wizard/__init__.py +++ b/account_payment_order_return/wizards/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import account_payment_line_create diff --git a/account_payment_order_return/wizard/account_payment_line_create.py b/account_payment_order_return/wizards/account_payment_line_create.py similarity index 90% rename from account_payment_order_return/wizard/account_payment_line_create.py rename to account_payment_order_return/wizards/account_payment_line_create.py index 4cec05f1d..d443af40d 100644 --- a/account_payment_order_return/wizard/account_payment_line_create.py +++ b/account_payment_order_return/wizards/account_payment_line_create.py @@ -1,8 +1,7 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - Luis M. Ontalba # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from openerp import api, fields, models +from odoo import api, fields, models class AccountPaymentLineCreate(models.TransientModel): diff --git a/account_payment_order_return/wizard/account_payment_line_create_view.xml b/account_payment_order_return/wizards/account_payment_line_create_view.xml similarity index 100% rename from account_payment_order_return/wizard/account_payment_line_create_view.xml rename to account_payment_order_return/wizards/account_payment_line_create_view.xml