Skip to content

Commit

Permalink
Merge b6b6d06 into 9f0c518
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaden committed May 9, 2019
2 parents 9f0c518 + b6b6d06 commit 74a7534
Show file tree
Hide file tree
Showing 28 changed files with 1,468 additions and 0 deletions.
106 changes: 106 additions & 0 deletions donation_bank_statement/README.rst
@@ -0,0 +1,106 @@
=======================
Donation Bank Statement
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Fdonation-lightgray.png?logo=github
:target: https://github.com/OCA/donation/tree/11.0/donation_bank_statement
:alt: OCA/donation
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/donation-11-0/donation-11-0-donation_bank_statement
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/180/11.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is designed to handle donation received by credit transfer.
After the import of the bank statement, you can start a wizard that will
create a donation for each unreconciled bank statement lines affected to
a particular account.

**Table of contents**

.. contents::
:local:

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

To configure the module, you have to create a bank journal dedicated
to donations via credit transfer, that will have a special transfer
account as default debit/credit account.

Then, in the menu *Accounting > Configuration > Settings*, in the
section *Donations*, you must select this journal as the *Donations via
Credit Transfer Journal*. You must also select the donation product that
will be used by default on donation generated from bank statements.

Usage
=====

To use the module, you should import your bank statement as usual.
During the reconciliation step, when you have a donation by credit
transfer, you should set the account that you used as default
debit/credit account on the journal dedicated for donations via credit
transfer. When you validate the bank statement, Odoo will create draft
donations linked to the related bank statement line. When these draft
donations are validated, it will create the corresponding account move
and reconcile it with the account move of the bank statement.

Hint: for a faster processing of the bank statement, you can create a *Reconciliation Model* dedicated to the Donations via Credit Transfer in the menu *Accounting > Dashboard > Bank Journal > More > Reconciliation Models*. This reconciliation model must be configured with the account corresponding to the donations via credit transfer.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/donation/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/donation/issues/new?body=module:%20donation_bank_statement%0Aversion:%2011.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
~~~~~~~

* Barroux Abbey
* Akretion

Contributors
~~~~~~~~~~~~

* Brother Bernard <informatique - at - barroux.org>
* Brother Irénée (Barroux Abbey)
* Alexis de Lattre <alexis.delattre@akretion.com>
* Thore Baden <thorebaden@gmail.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/donation <https://github.com/OCA/donation/tree/11.0/donation_bank_statement>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions donation_bank_statement/__init__.py
@@ -0,0 +1,5 @@
# © 2014-2016 Barroux Abbey (http://www.barroux.org)
# © 2014-2016 Akretion France (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions donation_bank_statement/__manifest__.py
@@ -0,0 +1,22 @@
# © 2014-2016 Barroux Abbey (http://www.barroux.org)
# © 2014-2016 Akretion France (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Donation Bank Statement',
'version': '11.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Creates donation from unreconciled bank statement lines',
'author': 'Barroux Abbey, Akretion, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/donation',
'depends': ['donation'],
'data': [
'security/ir.model.access.csv',
'views/bank_statement.xml',
'views/donation.xml',
'views/res_config_settings.xml',
],
'demo': ['demo/demo.xml'],
'installable': True,
}
37 changes: 37 additions & 0 deletions donation_bank_statement/demo/demo.xml
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
© 2014-2016 Barroux Abbey (www.barroux.org)
© 2014-2016 Akretion France (www.akretion.com)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="donation_credit_trf_journal_seq" model="ir.sequence">
<field name="name">Journal Donations via Credit Transfer</field>
<field name="prefix">DONTRF/</field>
<field name="padding">6</field>
<field name="company_id" ref="base.main_company" />
</record>
<!-- The user will have to configure manually the default_credit_account_id
and default_debit_account_id, we can't do that for him -->
<record id="donation_account" model="account.account">
<field name="name">Donations via Credit Transfer</field>
<field name="code">101402</field>
<field name="user_type_id" ref="account.data_account_type_revenue"/>
<field name="reconcile">True</field>
</record>
<record id="donation_credit_trf_journal" model="account.journal">
<field name="name">Donations via Credit Transfer</field>
<field name="code">DONTF</field>
<field name="type">bank</field>
<field name="sequence_id" ref="donation_credit_trf_journal_seq" />
<field name="company_id" ref="base.main_company" />
<field name="default_credit_account_id" ref="donation_account" />
<field name="default_debit_account_id" ref="donation_account" />
<field name="allow_donation">1</field>
</record>
<record id="base.main_company" model="res.company">
<field name="donation_credit_transfer_journal_id" ref="donation_credit_trf_journal" />
<field name="donation_credit_transfer_product_id" ref="donation_base.product_product_donation" />
</record>
</odoo>
112 changes: 112 additions & 0 deletions donation_bank_statement/i18n/de.po
@@ -0,0 +1,112 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * donation_bank_statement
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_donation_count
msgid "# of Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_donation_donation_bank_statement_id
msgid "Bank Statement"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_bank_statement_line
msgid "Bank Statement Line"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_res_company
msgid "Companies"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:55
#, python-format
msgid "Credit Transfer %s"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_donation_donation
msgid "Donation"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_donation_ids
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_line_donation_ids
#: model:ir.ui.view,arch_db:donation_bank_statement.view_account_config_settings
#: model:ir.ui.view,arch_db:donation_bank_statement.view_bank_statement_form
msgid "Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_config_settings_donation_credit_transfer_journal_id
#: model:ir.model.fields,field_description:donation_bank_statement.field_res_company_donation_credit_transfer_journal_id
msgid "Journal for Donations via Credit Transfer"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:77
#, python-format
msgid "Missing Default Debit Account on the Journal '%s'."
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:34
#, python-format
msgid "Missing Product for Donations via Credit Transfer on company %s"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:96
#, python-format
msgid "Missing partner on bank statement line '%s' dated %s with amount %s."
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/company.py:25
#, python-format
msgid "On the company %s, the Product for Donations via Credit Transfer (%s) is not a donation product !"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_config_settings_donation_credit_transfer_product_id
#: model:ir.model.fields,field_description:donation_bank_statement.field_res_company_donation_credit_transfer_product_id
msgid "Product for Donations via Credit Transfer"
msgstr ""

#. module: donation_bank_statement
#: model:ir.ui.view,arch_db:donation_bank_statement.view_bank_statement_line_form
msgid "Related Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_donation_donation_bank_statement_line_id
msgid "Source Bank Statement Line"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/donation.py:31
#, python-format
msgid "The default debit account of the journal '%s' must be reconciliable"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_config_settings
msgid "res.config.settings"
msgstr ""
112 changes: 112 additions & 0 deletions donation_bank_statement/i18n/donation_bank_statement.pot
@@ -0,0 +1,112 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * donation_bank_statement
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_donation_count
msgid "# of Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_donation_donation_bank_statement_id
msgid "Bank Statement"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_bank_statement_line
msgid "Bank Statement Line"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_res_company
msgid "Companies"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:55
#, python-format
msgid "Credit Transfer %s"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_donation_donation
msgid "Donation"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_donation_ids
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_bank_statement_line_donation_ids
#: model:ir.ui.view,arch_db:donation_bank_statement.view_account_config_settings
#: model:ir.ui.view,arch_db:donation_bank_statement.view_bank_statement_form
msgid "Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_config_settings_donation_credit_transfer_journal_id
#: model:ir.model.fields,field_description:donation_bank_statement.field_res_company_donation_credit_transfer_journal_id
msgid "Journal for Donations via Credit Transfer"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:77
#, python-format
msgid "Missing Default Debit Account on the Journal '%s'."
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:34
#, python-format
msgid "Missing Product for Donations via Credit Transfer on company %s"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/bank_statement.py:96
#, python-format
msgid "Missing partner on bank statement line '%s' dated %s with amount %s."
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/company.py:25
#, python-format
msgid "On the company %s, the Product for Donations via Credit Transfer (%s) is not a donation product !"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_account_config_settings_donation_credit_transfer_product_id
#: model:ir.model.fields,field_description:donation_bank_statement.field_res_company_donation_credit_transfer_product_id
msgid "Product for Donations via Credit Transfer"
msgstr ""

#. module: donation_bank_statement
#: model:ir.ui.view,arch_db:donation_bank_statement.view_bank_statement_line_form
msgid "Related Donations"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model.fields,field_description:donation_bank_statement.field_donation_donation_bank_statement_line_id
msgid "Source Bank Statement Line"
msgstr ""

#. module: donation_bank_statement
#: code:addons/donation_bank_statement/models/donation.py:31
#, python-format
msgid "The default debit account of the journal '%s' must be reconciliable"
msgstr ""

#. module: donation_bank_statement
#: model:ir.model,name:donation_bank_statement.model_account_config_settings
msgid "res.config.settings"
msgstr ""

0 comments on commit 74a7534

Please sign in to comment.