diff --git a/account_reconcile_show_boolean/README.rst b/account_reconcile_show_boolean/README.rst new file mode 100644 index 000000000..38929e877 --- /dev/null +++ b/account_reconcile_show_boolean/README.rst @@ -0,0 +1,35 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. + + +Automatic changelog generation +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`HISTORY.rst` can be auto generated using `towncrier `_. + +Just put towncrier compatible changelog fragments into `readme/newsfragments` +and the changelog file will be automatically generated and updated when a new fragment is added. + +Please refer to `towncrier` documentation to know more. + +NOTE: the changelog will be automatically generated when using `/ocabot merge $option`. +If you need to run it manually, refer to `OCA/maintainer-tools README `_. diff --git a/account_reconcile_show_boolean/__init__.py b/account_reconcile_show_boolean/__init__.py new file mode 100644 index 000000000..ef5ae3587 --- /dev/null +++ b/account_reconcile_show_boolean/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). diff --git a/account_reconcile_show_boolean/__manifest__.py b/account_reconcile_show_boolean/__manifest__.py new file mode 100644 index 000000000..1ff24e2ff --- /dev/null +++ b/account_reconcile_show_boolean/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2021 Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "account_reconcile_show_boolean", + "summary": "Allows to create reconciliable accounts by showing boolean on form view", + "version": "14.0.1.0.0", + "development_status": "Beta", + "category": "Accounting", + "website": "https://github.com/OCA/account-financial-tools", + "author": "Le Filament, Odoo Community Association (OCA)", + "maintainers": ["remi-filament"], + "license": "AGPL-3", + "application": False, + "installable": True, + "preloadable": True, + "depends": [ + "account", + ], + "data": [ + "views/account_account_view.xml", + ], +} diff --git a/account_reconcile_show_boolean/readme/CONTRIBUTORS.rst b/account_reconcile_show_boolean/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..32cdf7911 --- /dev/null +++ b/account_reconcile_show_boolean/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* remi-filament (https://le-filament.com) diff --git a/account_reconcile_show_boolean/readme/DESCRIPTION.rst b/account_reconcile_show_boolean/readme/DESCRIPTION.rst new file mode 100644 index 000000000..eecd8e117 --- /dev/null +++ b/account_reconcile_show_boolean/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This module allows to create payable / receivable account from partner (in particular) +by showing the Reconcile boolean on account.account form view. +Without this, the account you would create would not be reconciliable +and therefore would create issues when invoicing (invoices would automatically be marked as paid). + +This should have been part of Odoo core but was refused in https://github.com/odoo/odoo/pull/80778 diff --git a/account_reconcile_show_boolean/readme/USAGE.rst b/account_reconcile_show_boolean/readme/USAGE.rst new file mode 100644 index 000000000..6b6b0a8ac --- /dev/null +++ b/account_reconcile_show_boolean/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to have full accounting rights, then : + +#. Go to a partner +#. Navigate to Accounting +#. Create a payable / receivable account from there diff --git a/account_reconcile_show_boolean/static/description/icon.png b/account_reconcile_show_boolean/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/account_reconcile_show_boolean/static/description/icon.png differ diff --git a/account_reconcile_show_boolean/static/description/icon.svg b/account_reconcile_show_boolean/static/description/icon.svg new file mode 100644 index 000000000..a7a26d093 --- /dev/null +++ b/account_reconcile_show_boolean/static/description/icon.svg @@ -0,0 +1,79 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/account_reconcile_show_boolean/views/account_account_view.xml b/account_reconcile_show_boolean/views/account_account_view.xml new file mode 100644 index 000000000..cde9b700b --- /dev/null +++ b/account_reconcile_show_boolean/views/account_account_view.xml @@ -0,0 +1,20 @@ + + + + + + My view description + account.account + + + + + + + + + diff --git a/setup/account_reconcile_show_boolean/odoo/addons/account_reconcile_show_boolean b/setup/account_reconcile_show_boolean/odoo/addons/account_reconcile_show_boolean new file mode 120000 index 000000000..1be2f3dfe --- /dev/null +++ b/setup/account_reconcile_show_boolean/odoo/addons/account_reconcile_show_boolean @@ -0,0 +1 @@ +../../../../account_reconcile_show_boolean \ No newline at end of file diff --git a/setup/account_reconcile_show_boolean/setup.py b/setup/account_reconcile_show_boolean/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/account_reconcile_show_boolean/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)