From 5caa96c1e34592a8ebd768f919e4e89c4e6aa9ac Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Mon, 27 Apr 2026 15:42:25 +0700 Subject: [PATCH] feat: initialize account_shared_bank_cash module with metadata and ignore files --- .gitignore | 18 ++++++++++++++++++ README.md | 15 +++++++++++++++ __manifest__.py | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dc86099 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# Python +*.py[cod] +*$py.class +__pycache__/ + +# OS +.DS_Store +Thumbs.db + +# IDE / Editors +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# Odoo specific +*.pot diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b0030c --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Account Shared Bank Cash + +## Overview +This custom Odoo 19 module removes the standard restriction that prevents Chart of Accounts (COA) of type **Bank and Cash** (`asset_cash`) from being shared across multiple companies. + +By default, Odoo restricts a Bank and Cash account to a single company. This module patches `_check_company_consistency` on the `account.account` model to allow you to configure multiple companies for a single Bank/Cash account. This is particularly useful for setups where multiple Point of Sale (POS) shops across different companies deposit into the same physical bank account or cash account. + +## Features +- Overrides `account.account` company validation to allow `len(company_ids) > 1` on `asset_cash` accounts. +- Ensures POS payments and closing entries seamlessly use the shared account. + +> **Warning:** While POS and other payments will post to the shared account flawlessly, Odoo's standard Bank Statement Reconciliation strictly requires that statements and journal lines belong to the exact same company. Therefore, you cannot perform cross-company bank reconciliation natively in a single screen. + +## Author +- **Suherdy Yacob** diff --git a/__manifest__.py b/__manifest__.py index 7d31c36..335da40 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -7,7 +7,7 @@ 'description': """ This module removes the standard restriction that prevents Chart of Accounts (COA) of type 'Bank and Cash' from being shared across multiple companies. """, - 'author': 'Antigravity', + 'author': 'Suherdy Yacob', 'depends': ['account'], 'data': [], 'installable': True,