[ADD] account_reconcile_show_boolean

This commit is contained in:
remi-filament
2021-12-22 15:52:51 +01:00
parent aa9708c05d
commit 022f1f7eaa
11 changed files with 176 additions and 0 deletions

View File

@@ -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 <https://pypi.org/project/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 <https://github.com/OCA/maintainer-tools>`_.

View File

@@ -0,0 +1 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

View File

@@ -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",
],
}

View File

@@ -0,0 +1 @@
* remi-filament (https://le-filament.com)

View File

@@ -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

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Le Filament (https://le-filament.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_account_form" model="ir.ui.view">
<field name="name">My view description</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_form" />
<field name="arch" type="xml">
<field name="user_type_id" position="after">
<field
name="reconcile"
attrs="{'invisible': ['|', ('internal_type','=','liquidity'), ('internal_group', '=', 'off_balance')]}"
/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1 @@
../../../../account_reconcile_show_boolean

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)