diff --git a/account_banking_ach_base/README.rst b/account_banking_ach_base/README.rst index cbc66185..fc3fb501 100644 --- a/account_banking_ach_base/README.rst +++ b/account_banking_ach_base/README.rst @@ -2,10 +2,13 @@ Localizations for North American Banking & Financials ===================================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:3e433c1cd98ea8f71c47602d76dc289df93b16fc3d56487bff66d2455e5d2c6a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,16 +17,16 @@ Localizations for North American Banking & Financials :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/14.0/account_banking_ach_base + :target: https://github.com/OCA/l10n-usa/tree/16.0/account_banking_ach_base :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-14-0/l10n-usa-14-0-account_banking_ach_base + :target: https://translation.odoo-community.org/projects/l10n-usa-16-0/l10n-usa-16-0-account_banking_ach_base :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/203/14.0 - :alt: Try me on Runbot +.. |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| +|badge1| |badge2| |badge3| |badge4| |badge5| Add fields to Bank, Partner and Company required for ACH transactions in USA. @@ -47,8 +50,8 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -81,6 +84,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/l10n-usa `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_banking_ach_base/models/account_move.py b/account_banking_ach_base/models/account_move.py index be44eaea..eb6c4315 100644 --- a/account_banking_ach_base/models/account_move.py +++ b/account_banking_ach_base/models/account_move.py @@ -18,7 +18,8 @@ def create_account_payment_line(self): if today < delay_expired: raise UserError( _( - "To satisfy payment mandate, cannot add invoice %(name)s to Debit Order until %(delay_expired)s!" + "To satisfy payment mandate, cannot add " + "invoice %(name)s to Debit Order until %(delay_expired)s!" ), name=invoice.name, delay_expired=delay_expired.strftime("%Y-%m-%d"), diff --git a/account_banking_ach_base/models/account_payment_method.py b/account_banking_ach_base/models/account_payment_method.py index d6c13bde..066a3e32 100644 --- a/account_banking_ach_base/models/account_payment_method.py +++ b/account_banking_ach_base/models/account_payment_method.py @@ -2,7 +2,7 @@ # @author: Alexis de Lattre # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import api, models class AccountPaymentMethod(models.Model): @@ -11,6 +11,6 @@ class AccountPaymentMethod(models.Model): @api.model def _get_payment_method_information(self): res = super()._get_payment_method_information() - res['ACH-In'] = {'mode': 'multi', 'domain': [('type', '=', 'bank')]} - res['ACH-Out'] = {'mode': 'multi', 'domain': [('type', '=', 'bank')]} + res["ACH-In"] = {"mode": "multi", "domain": [("type", "=", "bank")]} + res["ACH-Out"] = {"mode": "multi", "domain": [("type", "=", "bank")]} return res diff --git a/account_banking_ach_base/models/res_bank.py b/account_banking_ach_base/models/res_bank.py index 76d4aeb2..665cf09d 100644 --- a/account_banking_ach_base/models/res_bank.py +++ b/account_banking_ach_base/models/res_bank.py @@ -18,7 +18,7 @@ def validate_routing_number(self): try: rtn.validate(self.routing_number) except Exception: - raise ValidationError( + raise ValidationError( # noqa: B904 _("%s is not a valid US routing number!") % self.routing_number ) elif country_code == "CA": diff --git a/account_banking_ach_base/static/description/index.html b/account_banking_ach_base/static/description/index.html index 5136220c..f19af5c5 100644 --- a/account_banking_ach_base/static/description/index.html +++ b/account_banking_ach_base/static/description/index.html @@ -1,20 +1,19 @@ - - + Localizations for North American Banking & Financials