From f41e0bb1e5a3841353ebf16e323a50bad41d729d Mon Sep 17 00:00:00 2001 From: Chandresh Thakkar Date: Fri, 8 Jan 2021 16:17:23 +0530 Subject: [PATCH] [ADD] New module to make default expense account as non-required. --- account_no_default/README.rst | 74 +++++++++++++++++++ account_no_default/__init__.py | 0 account_no_default/__manifest__.py | 19 +++++ account_no_default/readme/CONTRIBUTORS.rst | 2 + account_no_default/readme/DESCRIPTION.rst | 1 + .../views/account_journal_views.xml | 12 +++ .../odoo/addons/account_no_default | 1 + setup/account_no_default/setup.py | 6 ++ 8 files changed, 115 insertions(+) create mode 100644 account_no_default/README.rst create mode 100644 account_no_default/__init__.py create mode 100644 account_no_default/__manifest__.py create mode 100644 account_no_default/readme/CONTRIBUTORS.rst create mode 100644 account_no_default/readme/DESCRIPTION.rst create mode 100644 account_no_default/views/account_journal_views.xml create mode 120000 setup/account_no_default/odoo/addons/account_no_default create mode 100644 setup/account_no_default/setup.py diff --git a/account_no_default/README.rst b/account_no_default/README.rst new file mode 100644 index 000000000..ff4fdb372 --- /dev/null +++ b/account_no_default/README.rst @@ -0,0 +1,74 @@ +===================================== +Purchase Account Journal Modification +===================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fpurchase--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/purchase-workflow/tree/14.0/purchase_account_journal_modification + :alt: OCA/purchase-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_account_journal_modification + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/142/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +In previous versions of Odoo, the system did not require a default expense account. We would like to investigate the feasibility of a simple solution of just making this field not-required once again in v14. + +**Table of contents** + +.. contents:: + :local: + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Daniel Reis +* Chandresh Thakkar + +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/purchase-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_no_default/__init__.py b/account_no_default/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/account_no_default/__manifest__.py b/account_no_default/__manifest__.py new file mode 100644 index 000000000..98a178a81 --- /dev/null +++ b/account_no_default/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "No Default Account", + "version": "14.0.1.0.0", + "development_status": "Beta", + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "maintainers": ["dreispt"], + "summary": "Remove default expense account for vendor bills journal", + "website": "https://github.com/OCA/account-financial-tools", + "license": "AGPL-3", + "depends": ["account"], + "category": "Accounting/Accounting", + "data": [ + "views/account_journal_views.xml", + ], + "installable": True, +} diff --git a/account_no_default/readme/CONTRIBUTORS.rst b/account_no_default/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..88e8811fe --- /dev/null +++ b/account_no_default/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Daniel Reis +* Chandresh Thakkar diff --git a/account_no_default/readme/DESCRIPTION.rst b/account_no_default/readme/DESCRIPTION.rst new file mode 100644 index 000000000..31a925049 --- /dev/null +++ b/account_no_default/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +In previous versions of Odoo, the system did not require a default expense account. We would like to investigate the feasibility of a simple solution of just making this field not-required once again in v14. diff --git a/account_no_default/views/account_journal_views.xml b/account_no_default/views/account_journal_views.xml new file mode 100644 index 000000000..059e6ca4e --- /dev/null +++ b/account_no_default/views/account_journal_views.xml @@ -0,0 +1,12 @@ + + + view.account.journal.form.inherit + account.journal + + + + {'required': False} + + + + diff --git a/setup/account_no_default/odoo/addons/account_no_default b/setup/account_no_default/odoo/addons/account_no_default new file mode 120000 index 000000000..2ffa78670 --- /dev/null +++ b/setup/account_no_default/odoo/addons/account_no_default @@ -0,0 +1 @@ +../../../../account_no_default \ No newline at end of file diff --git a/setup/account_no_default/setup.py b/setup/account_no_default/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/account_no_default/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)