Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_banking_ach_credit_transfer #130

Open
wants to merge 16 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions account_banking_ach_credit_transfer/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
===================================
Account Banking ACH Credit Transfer
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2acfd000956b8377b952111df800a0ded3a4272a185ab1ce5ba3b446e19153c5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fl10n--usa-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-usa/tree/16.0/account_banking_ach_credit_transfer
:alt: OCA/l10n-usa
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-usa-16-0/l10n-usa-16-0-account_banking_ach_credit_transfer
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-usa&target_branch=16.0
:alt: Try me on Runboat

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

Create ACH files for Credit Transfers

Module to export credit transfers in Nacha file format.

**Table of contents**

.. contents::
:local:

Installation
============

This module depends on :

* account_banking_ach_base
* carta-ach
* stdnum

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

1. Your Company record must have the Legal ID specified.
2. Your Bank must have the Routing Number specified.

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

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

* Thinkwell Designs

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

* Dave Burkholder <[email protected]>
* Maxime Chambreuil <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Murtaza Mithaiwala <[email protected]>

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/l10n-usa <https://github.com/OCA/l10n-usa/tree/16.0/account_banking_ach_credit_transfer>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_banking_ach_credit_transfer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from .post_install import update_bank_journals
17 changes: 17 additions & 0 deletions account_banking_ach_credit_transfer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2018 Thinkwell Designs <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Account Banking ACH Credit Transfer",
"summary": "Create ACH files for Credit Transfers",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Thinkwell Designs, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-usa",
"category": "Banking addons",
"depends": ["account_banking_ach_base"],
"data": ["data/account_payment_method.xml"],
"demo": ["demo/ach_credit_transfer_demo.xml"],
"post_init_hook": "update_bank_journals",
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="ach_credit_transfer" model="account.payment.method">
<field name="name">ACH</field>
<field name="code">ACH-Out</field>
<field name="payment_type">outbound</field>
<field name="bank_account_required" eval="True" />
<field name="mandate_required" eval="False" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="payment_mode_outbound_ach_ct1" model="account.payment.mode">
<field name="name">ACH</field>
<field name="company_id" ref="base.main_company" />
<field name="bank_account_link">variable</field>
<field name="payment_method_id" ref="ach_credit_transfer" />
<field
name="default_journal_ids"
search="[('type', 'in', ('purchase', 'purchase_refund'))]"
/>
</record>
<!-- Camptocamp -->
<record id="base.res_partner_12" model="res.partner">
<field name="supplier_payment_mode_id" ref="payment_mode_outbound_ach_ct1" />
</record>
<!-- Asustek -->
<record id="base.res_partner_1" model="res.partner">
<field name="supplier_payment_mode_id" ref="payment_mode_outbound_ach_ct1" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_banking_ach_credit_transfer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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: account_banking_ach_credit_transfer
#: model:account.payment.method,name:account_banking_ach_credit_transfer.ach_credit_transfer
#: model:account.payment.mode,name:account_banking_ach_credit_transfer.payment_mode_outbound_ach_ct1
msgid "ACH"
msgstr ""

#. module: account_banking_ach_credit_transfer
#: model:ir.model,name:account_banking_ach_credit_transfer.model_account_payment_order
msgid "Payment Order"
msgstr ""
3 changes: 3 additions & 0 deletions account_banking_ach_credit_transfer/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import account_payment_order
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from odoo import models


class AccountPaymentOrder(models.Model):
_inherit = "account.payment.order"

def generate_payment_file(self):
"""
Creates the ACH Credit Transfer file by calling
generate_ach_file in countinghouse_ach_base
"""
self.ensure_one()
if self.payment_method_id.code == "ACH-Out":
return self.generate_ach_file()
return super(AccountPaymentOrder, self).generate_payment_file()
15 changes: 15 additions & 0 deletions account_banking_ach_credit_transfer/post_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2018 Thinkwell Designs <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import SUPERUSER_ID, api


def update_bank_journals(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
journals = env["account.journal"].search([("type", "=", "bank")])
ach_ct = env.ref(
"account_banking_ach_credit_transfer.ach_credit_transfer",
raise_if_not_found=False,
)
if ach_ct:
journals.write({"outbound_payment_method_line_ids": [(4, ach_ct.id)]})
2 changes: 2 additions & 0 deletions account_banking_ach_credit_transfer/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1. Your Company record must have the Legal ID specified.
2. Your Bank must have the Routing Number specified.
4 changes: 4 additions & 0 deletions account_banking_ach_credit_transfer/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Dave Burkholder <[email protected]>
* Maxime Chambreuil <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Murtaza Mithaiwala <[email protected]>
3 changes: 3 additions & 0 deletions account_banking_ach_credit_transfer/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Create ACH files for Credit Transfers

Module to export credit transfers in Nacha file format.
5 changes: 5 additions & 0 deletions account_banking_ach_credit_transfer/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module depends on :

* account_banking_ach_base
* carta-ach
* stdnum
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading