Skip to content

Commit

Permalink
account_payment_return: Improve behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza authored and sergio-teruel committed Mar 16, 2020
1 parent 295be55 commit 0b2386e
Show file tree
Hide file tree
Showing 14 changed files with 279 additions and 206 deletions.
56 changes: 48 additions & 8 deletions account_payment_return/README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,49 @@
Payment orders returns
.. 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

=================================
Returned Customers Payment Orders
=================================

This module implements customer receivables returns and allows to send
related reconciled account move lines back to a state where
the debt is still open, and letting history of it.

This module can be extended adding importers that automatically fills the
full returned payment record.

Usage
=====

Go to Accounting > Customers > Customer Payment Returns, and create a new
record, register on each line a paid (reconciled) receivable journal item,
and input the amount that is going to be returned.

Next, press button "Confirm" to create a new move line that removes the
balance from the bank journal and reconcile items together to show payment
history through it.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/96/8.0

Known issues / Roadmap
======================

Features:
---------
* Add a button to see the created move.
* Allow to add a commission amount on each line.

* This module implements the return of invoice payments and allows to catch several reconciled account move lines, to give back to a state where the debt is still open, and letting history of it.
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
account-payment/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 `here <https://github.com/OCA/
account-payment/issues/new?body=module:%20
account_payment_return%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======
Expand All @@ -14,9 +52,9 @@ Contributors
------------
* 7 i TRIA <http://www.7itria.cat>
* Avanzosc <http://www.avanzosc.com>
* Pedro M. Baeza <pedro.baeza at serviciosbaeza.com>
* Markus Schneider <markus.schneider at initos.com>
* Sergio Teruel <sergio at incaser.es>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Markus Schneider <markus.schneider@initos.com>
* Sergio Teruel <sergio@incaser.es>

Maintainer
----------
Expand All @@ -27,6 +65,8 @@ Maintainer

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.
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 http://odoo-community.org.
1 change: 0 additions & 1 deletion account_payment_return/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
##############################################################################

from . import models

31 changes: 20 additions & 11 deletions account_payment_return/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -10,6 +10,8 @@
# Markus Schneider <markus.schneider at initos.com>
# Copyright (c) 2015 Incaser Informatica <http://www.incaser.es/>
# Sergio Teruel <sergio at incaser.es>
# Copyright (c) 2015 Serv. Tecnol. Avanzados <http://www.serviciosbaeza.com>
# Pedro M. Baeza <pedro.baeza at serviciosbaeza.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
Expand All @@ -28,19 +30,26 @@


{
"name": "Account Payment Return",
"version": "1.0",
"name": "Account Payment Returns",
"version": "8.0.1.0.0",
"summary": "Manage the return of your payments",
'license': 'AGPL-3',
"depends": ['mail', 'account'],
'author': 'Serv. Tecnol. Avanzados - Pedro M. Baeza',
"depends": [
'mail',
'account',
],
'author': '7 i TRIA, '
'Serv. Tecnol. Avanzados - Pedro M. Baeza, '
'Incaser Informática, '
'initOS GmbH & Co., '
'Odoo Community Association (OCA)',
'website': 'http://www.serviciosbaeza.com',
'data': [
'security/ir.model.access.csv',
'security/account_payment_return_security.xml',
'views/payment_return_view.xml',
'data/ir_sequence_data.xml',
'views/account_invoice_view.xml',
'security/ir.model.access.csv',
'security/account_payment_return_security.xml',
'views/payment_return_view.xml',
'data/ir_sequence_data.xml',
'views/account_invoice_view.xml',
],
'demo': [],
'installable': True,
}
12 changes: 6 additions & 6 deletions account_payment_return/i18n/account_payment_return.pot
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ msgid "Invoice"
msgstr ""

#. module: account_payment_return
#: help:account.invoice,payment_returned:0
#: help:account.invoice,returned_payment:0
msgid "Invoice has been included on a payment that has been returned later."
msgstr ""

Expand Down Expand Up @@ -178,23 +178,23 @@ msgid "Payment return lines"
msgstr ""

#. module: account_payment_return
#: field:account.invoice,payment_returned:0
msgid "Payment returned"
#: field:account.invoice,returned_payment:0
msgid "Retuned payment"
msgstr ""

#. module: account_payment_return
#: model:ir.actions.act_window,name:account_payment_return.payment_return_action
#: model:ir.ui.menu,name:account_payment_return.payment_return_menu
#: view:payment.return:account_payment_return.payment_return_tree_view
msgid "Payment returns"
msgid "Customer Payment Returns"
msgstr ""

#. module: account_payment_return
#: help:payment.return.line,concept:0
#: help:payment.return.line,date:0
#: help:payment.return.line,partner_name:0
#: help:payment.return.line,reason:0
msgid "Readed from imported file. Only for reference."
msgid "Read from imported file. Only for reference."
msgstr ""

#. module: account_payment_return
Expand Down Expand Up @@ -255,7 +255,7 @@ msgstr ""

#. module: account_payment_return
#: help:payment.return,date:0
msgid "This date will be used as the date for the account entry."
msgid "This date will be used as the account entry date."
msgstr ""

#. module: account_payment_return
Expand Down
14 changes: 7 additions & 7 deletions account_payment_return/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ msgstr "Importiert"
#: code:addons/account_payment_return/payment_return.py:126
#. module: account_payment_return
#, python-format
msgid "You must complete all invoice references in the payment return."
msgid "You must input all invoice references in the payment return."
msgstr "Alle Zeilen müssen mit einer Rechnung verknüpft sein."

#: view:payment.return:0
Expand Down Expand Up @@ -55,7 +55,7 @@ msgstr "Followers"
#: model:ir.ui.menu,name:account_payment_return.payment_return_menu
#: view:payment.return:0
#. module: account_payment_return
msgid "Payment returns"
msgid "Customer Payment returns"
msgstr "Kunden Rückbuchungen"

#: field:payment.return.line,reason:0
Expand Down Expand Up @@ -149,9 +149,9 @@ msgstr ""
msgid "Messages and communication history"
msgstr ""

#: field:account.invoice,payment_returned:0
#: field:account.invoice,returned_payment:0
#. module: account_payment_return
msgid "Payment returned"
msgid "Returned payment"
msgstr "Zahlung zurückgebucht"

#: view:payment.return:0
Expand Down Expand Up @@ -196,7 +196,7 @@ msgstr "Rückbuchungsdatum"
#: help:payment.return.line,partner_name:0
#: help:payment.return.line,reason:0
#. module: account_payment_return
msgid "Readed from imported file. Only for reference."
msgid "Read from imported file. Only for reference."
msgstr "Feld für Import, nur zur Information."

#: help:payment.return,message_unread:0
Expand Down Expand Up @@ -230,7 +230,7 @@ msgstr ""
msgid "Status Change"
msgstr "Status geändert"

#: help:account.invoice,payment_returned:0
#: help:account.invoice,returned_payment:0
#. module: account_payment_return
msgid "Invoice has been included on a payment that has been returned later."
msgstr "Rechnung hat eine Zahlung die später zurück gebucht wurde."
Expand All @@ -242,7 +242,7 @@ msgstr ""

#: help:payment.return,date:0
#. module: account_payment_return
msgid "This date will be used as the date for the account entry."
msgid "This date will be used as the account entry date."
msgstr ""

#: selection:payment.return,state:0
Expand Down
12 changes: 6 additions & 6 deletions account_payment_return/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ msgid "Invoice"
msgstr "Factura"

#. module: account_payment_return
#: help:account.invoice,payment_returned:0
#: help:account.invoice,returned_payment:0
msgid "Invoice has been included on a payment that has been returned later."
msgstr "La factura ha sido incluida en un pago que ha sido devuelto más tarde."

Expand Down Expand Up @@ -181,23 +181,23 @@ msgid "Payment return lines"
msgstr "Líneas de la devolución"

#. module: account_payment_return
#: field:account.invoice,payment_returned:0
msgid "Payment returned"
#: field:account.invoice,returned_payment:0
msgid "Returned payment"
msgstr "Pago devuelto"

#. module: account_payment_return
#: model:ir.actions.act_window,name:account_payment_return.payment_return_action
#: model:ir.ui.menu,name:account_payment_return.payment_return_menu
#: view:payment.return:account_payment_return.payment_return_tree_view
msgid "Payment returns"
msgid "Customer Payment Returns"
msgstr "Devoluciones de cobros"

#. module: account_payment_return
#: help:payment.return.line,concept:0
#: help:payment.return.line,date:0
#: help:payment.return.line,partner_name:0
#: help:payment.return.line,reason:0
msgid "Readed from imported file. Only for reference."
msgid "Read from imported file. Only for reference."
msgstr "Leído del archivo importado. Sólo como referencia."

#. module: account_payment_return
Expand Down Expand Up @@ -258,7 +258,7 @@ msgstr "Resumen"

#. module: account_payment_return
#: help:payment.return,date:0
msgid "This date will be used as the date for the account entry."
msgid "This date will be used as the account entry date."
msgstr "Esta fecha se utilizará como fecha del asiento contable."

#. module: account_payment_return
Expand Down
4 changes: 1 addition & 3 deletions account_payment_return/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -8,7 +8,6 @@
# Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
# Copyright (c) 2014 initOS GmbH & Co. KG <http://initos.com/>
# Markus Schneider <markus.schneider at initos.com>
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
Expand All @@ -26,5 +25,4 @@
##############################################################################

from . import payment_return
from . import payment_return_line
from . import account_invoice
11 changes: 6 additions & 5 deletions account_payment_return/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -24,9 +24,10 @@
from openerp import models, fields


class account_invoice(models.Model):
class AccountInvoice(models.Model):
_inherit = "account.invoice"

payment_returned = fields.Boolean('Payment returned', help='Invoice '
'has been included on a payment '
'that has been returned later.')
returned_payment = fields.Boolean(
string='Payment returned',
help='Invoice has been included on a payment that has been returned '
'later.')
Loading

0 comments on commit 0b2386e

Please sign in to comment.