diff --git a/oca_dependencies.txt b/oca_dependencies.txt index 1fff7bce..d80c4162 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1 +1,2 @@ +account-payment queue diff --git a/pos_session_pay_invoice/README.rst b/pos_session_pay_invoice/README.rst index 6433fc6d..2105e675 100644 --- a/pos_session_pay_invoice/README.rst +++ b/pos_session_pay_invoice/README.rst @@ -1,21 +1,41 @@ -.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg - :alt: License: LGPL-3 - ======================= POS Session Pay invoice ======================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github + :target: https://github.com/OCA/pos/tree/12.0/pos_session_pay_invoice + :alt: OCA/pos +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_session_pay_invoice + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/184/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This modules allows to pay an existing Supplier Invoice / Customer Refund, or to collect payment for an existing Customer Invoice, from within a POS Session. -Installation -============ +**Table of contents** -* In order to install this module, you will need to install first the - module 'account_cash_invoice', available in https://github.com/OCA/account-payment/ +.. contents:: + :local: Configuration ============= + #. Go to *Point of Sale / Configuration / Point of Sale* and activate the 'Cash Control' setting. @@ -30,39 +50,52 @@ Usage existing Customer Invoice or a Supplier Refund. You will need to select a Journal if the POS Config has defined multiple Payment Methods. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-pos-184 - - Known issues / Roadmap ====================== * Cannot pay invoices in a different currency than that defined in the journal associated to the payment method used to pay/collect payment. +* Should depend on `pos_invoicing` but it requires a refactoring of `pos_invoicing`. + It will be improved when migrating to 13.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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Creu Blanca + Contributors ------------- +~~~~~~~~~~~~ * Enric Tobella * Jordi Ballester +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +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/pos `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_session_pay_invoice/__init__.py b/pos_session_pay_invoice/__init__.py index 577a9637..bd6911bc 100644 --- a/pos_session_pay_invoice/__init__.py +++ b/pos_session_pay_invoice/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from . import wizard diff --git a/pos_session_pay_invoice/__manifest__.py b/pos_session_pay_invoice/__manifest__.py index cba714c7..9fca5f3c 100644 --- a/pos_session_pay_invoice/__manifest__.py +++ b/pos_session_pay_invoice/__manifest__.py @@ -1,10 +1,9 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Creu Blanca # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { 'name': 'POS Session Pay invoice', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Point Of Sale', 'author': "Creu Blanca," "Odoo Community Association (OCA)", diff --git a/pos_session_pay_invoice/readme/CONFIGURE.rst b/pos_session_pay_invoice/readme/CONFIGURE.rst new file mode 100644 index 00000000..ecefd6e1 --- /dev/null +++ b/pos_session_pay_invoice/readme/CONFIGURE.rst @@ -0,0 +1,2 @@ +#. Go to *Point of Sale / Configuration / Point of Sale* and activate the + 'Cash Control' setting. diff --git a/pos_session_pay_invoice/readme/CONTRIBUTORS.rst b/pos_session_pay_invoice/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..e250875e --- /dev/null +++ b/pos_session_pay_invoice/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Enric Tobella +* Jordi Ballester diff --git a/pos_session_pay_invoice/readme/DESCRIPTION.rst b/pos_session_pay_invoice/readme/DESCRIPTION.rst new file mode 100644 index 00000000..d66c63af --- /dev/null +++ b/pos_session_pay_invoice/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This modules allows to pay an existing Supplier Invoice / Customer Refund, or +to collect payment for an existing Customer Invoice, from within a POS Session. diff --git a/pos_session_pay_invoice/readme/ROADMAP.rst b/pos_session_pay_invoice/readme/ROADMAP.rst new file mode 100644 index 00000000..e9a91dc5 --- /dev/null +++ b/pos_session_pay_invoice/readme/ROADMAP.rst @@ -0,0 +1,5 @@ +* Cannot pay invoices in a different currency than that defined in the journal + associated to the payment method used to pay/collect payment. + +* Should depend on `pos_invoicing` but it requires a refactoring of `pos_invoicing`. + It will be improved when migrating to 13.0 diff --git a/pos_session_pay_invoice/readme/USAGE.rst b/pos_session_pay_invoice/readme/USAGE.rst new file mode 100644 index 00000000..7f4d8f3c --- /dev/null +++ b/pos_session_pay_invoice/readme/USAGE.rst @@ -0,0 +1,7 @@ +#. Go to *Point of Sale / Dashboard* and create and open or access to an + already open POS Session. +#. Press the button **Pay Invoice** to pay a Supplier Invoice or a Customer + Refund. It will be paid using Cash. +#. Select **Collect Payment from Invoice** in to receive a payment of an + existing Customer Invoice or a Supplier Refund. You will need to select + a Journal if the POS Config has defined multiple Payment Methods. diff --git a/pos_session_pay_invoice/tests/__init__.py b/pos_session_pay_invoice/tests/__init__.py index 510806cb..63055abd 100644 --- a/pos_session_pay_invoice/tests/__init__.py +++ b/pos_session_pay_invoice/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from . import test_pay_invoice diff --git a/pos_session_pay_invoice/tests/test_pay_invoice.py b/pos_session_pay_invoice/tests/test_pay_invoice.py index 6492b914..908ae202 100644 --- a/pos_session_pay_invoice/tests/test_pay_invoice.py +++ b/pos_session_pay_invoice/tests/test_pay_invoice.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Creu Blanca # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/pos_session_pay_invoice/wizard/__init__.py b/pos_session_pay_invoice/wizard/__init__.py index 030f06a1..953231da 100644 --- a/pos_session_pay_invoice/wizard/__init__.py +++ b/pos_session_pay_invoice/wizard/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from . import cash_invoice_in diff --git a/pos_session_pay_invoice/wizard/cash_invoice_in.py b/pos_session_pay_invoice/wizard/cash_invoice_in.py index 6c77fcdb..de1e8e4f 100644 --- a/pos_session_pay_invoice/wizard/cash_invoice_in.py +++ b/pos_session_pay_invoice/wizard/cash_invoice_in.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Creu Blanca # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/pos_session_pay_invoice/wizard/cash_invoice_out.py b/pos_session_pay_invoice/wizard/cash_invoice_out.py index 19bee735..b429be22 100644 --- a/pos_session_pay_invoice/wizard/cash_invoice_out.py +++ b/pos_session_pay_invoice/wizard/cash_invoice_out.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Creu Blanca # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).