Skip to content

Commit

Permalink
Merge pull request #1672 from davidwul/14-autoreconcile-checkout
Browse files Browse the repository at this point in the history
migrate reconcile 1015 wizard
  • Loading branch information
NoeBerdoz authored Oct 11, 2024
2 parents c89aa7f + b70b77a commit e6e765c
Show file tree
Hide file tree
Showing 13 changed files with 872 additions and 0 deletions.
78 changes: 78 additions & 0 deletions account_reconcile_checkout/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
=================================
Reconcile tools for Compassion CH
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0e57ca6729267a49293f58a3dac4b4e90a7138fe7da8249cea5670b84ff4c64a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-CompassionCH%2Fcompassion--switzerland-lightgray.png?logo=github
:target: https://github.com/CompassionCH/compassion-switzerland/tree/14.0/account_reconcile_checkout
:alt: CompassionCH/compassion-switzerland

|badge1| |badge2| |badge3|

Reconcile rules with bvr_ref of invoice for Compassion CH.

It finds a matching invoice for the move_line and reconciles only if the
amount of the payment corresponds or if it is a multiple of the invoice
amount. If many invoices are found, the first reconciled invoice is the
current invoice (last invoice that is not in future). Then it reconciles
the other invoices from last invoice to first.

**Table of contents**

.. contents::
:local:

Configuration
=============



Usage
=====

To use this module, you need to:

- Go to Accounting -> Action -> Reconcile outstanding

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/CompassionCH/compassion-switzerland/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/CompassionCH/compassion-switzerland/issues/new?body=module:%20account_reconcile_checkout%0Aversion:%2014.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
=======

Authors
-------

* Compassion CH

Contributors
------------

- Emanuel Cino <ecino@compassion.ch>

Maintainers
-----------

This module is part of the `CompassionCH/compassion-switzerland <https://github.com/CompassionCH/compassion-switzerland/tree/14.0/account_reconcile_checkout>`_ project on GitHub.

You are welcome to contribute.
11 changes: 11 additions & 0 deletions account_reconcile_checkout/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
##############################################################################
#
# Copyright (C) 2014 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __manifest__.py
#
##############################################################################

from . import wizards
48 changes: 48 additions & 0 deletions account_reconcile_checkout/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
##############################################################################
#
# ______ Releasing children from poverty _
# / ____/___ ____ ___ ____ ____ ___________(_)___ ____
# / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \
# / /___/ /_/ / / / / / / /_/ / /_/ (__ |__ ) / /_/ / / / /
# \____/\____/_/ /_/ /_/ .___/\__,_/____/____/_/\____/_/ /_/
# /_/
# in Jesus' name
#
# Copyright (C) 2014-2017 Compassion CH (http://www.compassion.ch)
# @author: Emanuel Cino <ecino@compassion.ch>
#
# 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 by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

# pylint: disable=C8101
{
"name": "Reconcile tools for Compassion CH",
"version": "14.0.1.0.0",
"author": "Compassion CH",
"license": "AGPL-3",
"category": "Finance",
"website": "https://github.com/CompassionCH/compassion-switzerland",
"depends": [
"account",
"payment_postfinance_flex", # paid-addons
],
"external_dependencies": {"python": ["postfinancecheckout"]},
"data": [
"security/ir.model.access.csv",
"views/reconcile_outstanding_wizard_view.xml",
],
"auto_install": False,
"installable": True,
}
Empty file.
1 change: 1 addition & 0 deletions account_reconcile_checkout/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Emanuel Cino \<<ecino@compassion.ch>\>
7 changes: 7 additions & 0 deletions account_reconcile_checkout/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Reconcile rules with bvr_ref of invoice for Compassion CH.

It finds a matching invoice for the move_line and reconciles only if the
amount of the payment corresponds or if it is a multiple of the invoice
amount. If many invoices are found, the first reconciled invoice is the
current invoice (last invoice that is not in future). Then it reconciles
the other invoices from last invoice to first.
3 changes: 3 additions & 0 deletions account_reconcile_checkout/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To use this module, you need to:

- Go to Accounting -\> Action -\> Reconcile outstanding
2 changes: 2 additions & 0 deletions account_reconcile_checkout/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_reconcile_outstanding_view,Access reconcile outstanding receipts Wizard,model_reconcile_outstanding_wizard,account.group_account_invoice,1,1,1,1
Loading

0 comments on commit e6e765c

Please sign in to comment.