Browse Source

[12.0][MIG] pos_session_pay_invoice

pull/363/head
Jaime Arroyo 5 years ago
parent
commit
10fd6a9eaf
  1. 1
      oca_dependencies.txt
  2. 69
      pos_session_pay_invoice/README.rst
  3. 1
      pos_session_pay_invoice/__init__.py
  4. 3
      pos_session_pay_invoice/__manifest__.py
  5. 2
      pos_session_pay_invoice/readme/CONFIGURE.rst
  6. 2
      pos_session_pay_invoice/readme/CONTRIBUTORS.rst
  7. 2
      pos_session_pay_invoice/readme/DESCRIPTION.rst
  8. 5
      pos_session_pay_invoice/readme/ROADMAP.rst
  9. 7
      pos_session_pay_invoice/readme/USAGE.rst
  10. 1
      pos_session_pay_invoice/tests/__init__.py
  11. 1
      pos_session_pay_invoice/tests/test_pay_invoice.py
  12. 1
      pos_session_pay_invoice/wizard/__init__.py
  13. 1
      pos_session_pay_invoice/wizard/cash_invoice_in.py
  14. 1
      pos_session_pay_invoice/wizard/cash_invoice_out.py

1
oca_dependencies.txt

@ -1 +1,2 @@
account-payment
queue queue

69
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 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 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. 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 Configuration
============= =============
#. Go to *Point of Sale / Configuration / Point of Sale* and activate the #. Go to *Point of Sale / Configuration / Point of Sale* and activate the
'Cash Control' setting. 'Cash Control' setting.
@ -30,39 +50,52 @@ Usage
existing Customer Invoice or a Supplier Refund. You will need to select existing Customer Invoice or a Supplier Refund. You will need to select
a Journal if the POS Config has defined multiple Payment Methods. 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 Known issues / Roadmap
====================== ======================
* Cannot pay invoices in a different currency than that defined in the journal * Cannot pay invoices in a different currency than that defined in the journal
associated to the payment method used to pay/collect payment. 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 <https://github.com/OCA/pos/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/pos/issues/new?body=module:%20pos_session_pay_invoice%0Aversion:%2012.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.
Credits Credits
======= =======
Authors
~~~~~~~
* Creu Blanca
Contributors Contributors
------------
~~~~~~~~~~~~
* Enric Tobella <etobella@creublanca.es> * Enric Tobella <etobella@creublanca.es>
* Jordi Ballester <jordi.ballester@eficent.com> * Jordi Ballester <jordi.ballester@eficent.com>
Maintainers
~~~~~~~~~~~
Maintainer
----------
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png .. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association :alt: Odoo Community Association
:target: https://odoo-community.org :target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_session_pay_invoice>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

1
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). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import wizard from . import wizard

3
pos_session_pay_invoice/__manifest__.py

@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Creu Blanca # Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{ {
'name': 'POS Session Pay invoice', 'name': 'POS Session Pay invoice',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Point Of Sale', 'category': 'Point Of Sale',
'author': "Creu Blanca," 'author': "Creu Blanca,"
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",

2
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.

2
pos_session_pay_invoice/readme/CONTRIBUTORS.rst

@ -0,0 +1,2 @@
* Enric Tobella <etobella@creublanca.es>
* Jordi Ballester <jordi.ballester@eficent.com>

2
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.

5
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

7
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.

1
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). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import test_pay_invoice from . import test_pay_invoice

1
pos_session_pay_invoice/tests/test_pay_invoice.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Creu Blanca <https://creublanca.es/> # Copyright 2017 Creu Blanca <https://creublanca.es/>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

1
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). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import cash_invoice_in from . import cash_invoice_in

1
pos_session_pay_invoice/wizard/cash_invoice_in.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Creu Blanca # Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

1
pos_session_pay_invoice/wizard/cash_invoice_out.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Creu Blanca # Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

Loading…
Cancel
Save