diff --git a/partner_bank_active/README.rst b/partner_bank_active/README.rst new file mode 100644 index 000000000..6392974da --- /dev/null +++ b/partner_bank_active/README.rst @@ -0,0 +1,67 @@ +.. 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 + +=================== +Partner Bank Active +=================== + +Allow to deactivate a partner bank account + +Usage +===== + +To use this module, you need to: + +#. Go on a partner bank account form view +#. Edit the bank account +#. Set it as active/inactive + +Please note that there is no action window for partner banks in Odoo base. +But for example, you can install 'sale' and then you will be able to access +partner banks in sale configuration menu. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/134/10.0 + +Known issues / Roadmap +====================== + +. If you deactivate a company bank account, linked journals will still be active. + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Benjamin Willig + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/partner_bank_active/__init__.py b/partner_bank_active/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/partner_bank_active/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/partner_bank_active/__manifest__.py b/partner_bank_active/__manifest__.py new file mode 100644 index 000000000..b2353550d --- /dev/null +++ b/partner_bank_active/__manifest__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Partner Bank Active', + 'summary': "Allow to deactivate a partner bank account", + 'version': '10.0.1.0.0', + 'license': 'AGPL-3', + 'author': 'ACSONE SA/NV, Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/partner-contact', + 'depends': [ + 'base', + ], + 'data': [ + 'views/res_partner_bank.xml', + ], +} diff --git a/partner_bank_active/models/__init__.py b/partner_bank_active/models/__init__.py new file mode 100644 index 000000000..7ff1ea226 --- /dev/null +++ b/partner_bank_active/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner_bank diff --git a/partner_bank_active/models/res_partner_bank.py b/partner_bank_active/models/res_partner_bank.py new file mode 100644 index 000000000..cbcd82cb0 --- /dev/null +++ b/partner_bank_active/models/res_partner_bank.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartnerBank(models.Model): + + _inherit = 'res.partner.bank' + + active = fields.Boolean(default=True) diff --git a/partner_bank_active/static/description/icon.png b/partner_bank_active/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_bank_active/static/description/icon.png differ diff --git a/partner_bank_active/views/res_partner_bank.xml b/partner_bank_active/views/res_partner_bank.xml new file mode 100644 index 000000000..807436b29 --- /dev/null +++ b/partner_bank_active/views/res_partner_bank.xml @@ -0,0 +1,34 @@ + + + + + + + res.partner.bank.form (in partner_bank_active) + res.partner.bank + + + + + + + + + + + + res.partner.bank.search (in (partner_bank_active) + res.partner.bank + + + + + + + + + + + +