mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-25 14:32:00 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
49
odoo-bringout-oca-ocb-l10n_generic_coa/README.md
Normal file
49
odoo-bringout-oca-ocb-l10n_generic_coa/README.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# Generic - Accounting
|
||||
|
||||
|
||||
This is the base module to manage the generic accounting chart in Odoo.
|
||||
==============================================================================
|
||||
|
||||
Install some generic chart of accounts.
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_generic_coa
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- account
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Generic - Accounting
|
||||
- **Version**: 1.1
|
||||
- **Category**: Accounting/Localizations/Account Charts
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: False
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_generic_coa`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
32
odoo-bringout-oca-ocb-l10n_generic_coa/doc/ARCHITECTURE.md
Normal file
32
odoo-bringout-oca-ocb-l10n_generic_coa/doc/ARCHITECTURE.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph L10n_generic_coa Module - l10n_generic_coa
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for l10n_generic_coa. Configure related models, access rights, and options as needed.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [account](../../odoo-bringout-oca-ocb-account)
|
||||
4
odoo-bringout-oca-ocb-l10n_generic_coa/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-l10n_generic_coa/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon l10n_generic_coa or install in UI.
|
||||
7
odoo-bringout-oca-ocb-l10n_generic_coa/doc/INSTALL.md
Normal file
7
odoo-bringout-oca-ocb-l10n_generic_coa/doc/INSTALL.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_generic_coa"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-l10n_generic_coa"
|
||||
```
|
||||
11
odoo-bringout-oca-ocb-l10n_generic_coa/doc/MODELS.md
Normal file
11
odoo-bringout-oca-ocb-l10n_generic_coa/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in l10n_generic_coa.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
6
odoo-bringout-oca-ocb-l10n_generic_coa/doc/OVERVIEW.md
Normal file
6
odoo-bringout-oca-ocb-l10n_generic_coa/doc/OVERVIEW.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: l10n_generic_coa. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon l10n_generic_coa
|
||||
- License: LGPL-3
|
||||
3
odoo-bringout-oca-ocb-l10n_generic_coa/doc/REPORTS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_generic_coa/doc/REPORTS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
8
odoo-bringout-oca-ocb-l10n_generic_coa/doc/SECURITY.md
Normal file
8
odoo-bringout-oca-ocb-l10n_generic_coa/doc/SECURITY.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Security
|
||||
|
||||
This module does not define custom security rules or access controls beyond Odoo defaults.
|
||||
|
||||
Default Odoo security applies:
|
||||
- Base user access through standard groups
|
||||
- Model access inherited from dependencies
|
||||
- No custom row-level security rules
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-l10n_generic_coa/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-l10n_generic_coa/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon l10n_generic_coa
|
||||
```
|
||||
3
odoo-bringout-oca-ocb-l10n_generic_coa/doc/WIZARDS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_generic_coa/doc/WIZARDS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
def uninstall_hook(cr, registry):
|
||||
cr.execute(
|
||||
"DELETE FROM ir_model_data WHERE module = 'l10n_generic_coa'"
|
||||
)
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Generic - Accounting',
|
||||
'version': '1.1',
|
||||
'category': 'Accounting/Localizations/Account Charts',
|
||||
'description': """
|
||||
This is the base module to manage the generic accounting chart in Odoo.
|
||||
==============================================================================
|
||||
|
||||
Install some generic chart of accounts.
|
||||
""",
|
||||
'depends': [
|
||||
'account',
|
||||
],
|
||||
'data': [
|
||||
'data/l10n_generic_coa.xml',
|
||||
'data/account.account.template.csv',
|
||||
'data/l10n_generic_coa_post.xml',
|
||||
],
|
||||
'uninstall_hook': 'uninstall_hook',
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
"id","name","code","account_type","chart_template_id/id","tag_ids/id","reconcile"
|
||||
"current_assets","Current Assets","1010","asset_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"stock_valuation","Stock Valuation","1101","asset_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"stock_in","Stock Interim (Received)","1102","asset_current","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"stock_out","Stock Interim (Delivered)","1103","asset_current","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"receivable","Account Receivable","1210","asset_receivable","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"to_receive_rec","Products to receive","1211","asset_current","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"tax_paid","Tax Paid","1310","asset_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"tax_receivable","Tax Receivable","1320","asset_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"prepayments","Prepayments","1410","asset_prepayments","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"fixed_assets","Fixed Asset","1510","asset_fixed","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"non_current_assets","Non-current assets","1910","asset_non_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"current_liabilities","Current Liabilities","2010","liability_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"payable","Account Payable","2110","liability_payable","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"to_receive_pay","Bills to receive","2111","liability_current","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"tax_received","Tax Received","2510","liability_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"tax_payable","Tax Payable","2520","liability_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"non_current_liabilities","Non-current Liabilities","2910","liability_non_current","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"capital","Capital","3010","equity","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"dividends","Dividends","3020","equity","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"income","Product Sales","4000","income","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False"
|
||||
"income_currency_exchange","Foreign Exchange Gain","4410","income","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False"
|
||||
"cash_diff_income","Cash Difference Gain","4420","income","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"other_income","Other Income","4500","income_other","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"cost_of_goods_sold","Cost of Goods Sold","5000","expense_direct_cost","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False"
|
||||
"expense","Expenses","6000","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False"
|
||||
"expense_invest","Purchase of Equipments","6110","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"expense_rent","Rent","6120","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"expense_finance","Bank Fees","6200","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False"
|
||||
"expense_salary","Salary Expenses","6300","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False"
|
||||
"expense_currency_exchange","Foreign Exchange Loss","6410","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False"
|
||||
"cash_diff_expense","Cash Difference Loss","6420","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"expense_rd","RD Expenses","9610","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"expense_sales","Sales Expenses","9620","expense","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False"
|
||||
"pos_receivable","Account Receivable (PoS)","1013","asset_receivable","l10n_generic_coa.configurable_chart_template","","True"
|
||||
"cash_discount_loss","Cash Discount Loss","6430","expense","l10n_generic_coa.configurable_chart_template","","False"
|
||||
"cash_discount_gain","Cash Discount Gain","4430","income","l10n_generic_coa.configurable_chart_template","","False"
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Account Tax Group -->
|
||||
<record id="configurable_chart_template" model="account.chart.template">
|
||||
<field name="name">Configurable Account Chart Template</field>
|
||||
<field name="code_digits">6</field>
|
||||
<field name="bank_account_code_prefix">1014</field>
|
||||
<field name="cash_account_code_prefix">1015</field>
|
||||
<field name="transfer_account_code_prefix">1017</field>
|
||||
<field name="currency_id" ref="base.USD"/>
|
||||
<field name="country_id" eval="False"/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- Tax template for sale and purchase -->
|
||||
<record id="tax_group_15" model="account.tax.group">
|
||||
<field name="name">Tax 15%</field>
|
||||
</record>
|
||||
</data>
|
||||
<data>
|
||||
<!-- Chart template account links -->
|
||||
<record id="configurable_chart_template" model="account.chart.template">
|
||||
<field name="use_anglo_saxon" eval="True"/>
|
||||
<field name="property_account_receivable_id" ref="receivable"/>
|
||||
<field name="property_account_payable_id" ref="payable"/>
|
||||
<field name="property_account_expense_categ_id" ref="expense"/>
|
||||
<field name="property_account_income_categ_id" ref="income"/>
|
||||
<field name="property_stock_account_input_categ_id" ref="stock_in"/>
|
||||
<field name="property_stock_account_output_categ_id" ref="stock_out"/>
|
||||
<field name="property_stock_valuation_account_id" ref="stock_valuation"/>
|
||||
<field name="income_currency_exchange_account_id" ref="income_currency_exchange"/>
|
||||
<field name="expense_currency_exchange_account_id" ref="expense_currency_exchange"/>
|
||||
<field name="default_cash_difference_income_account_id" ref="cash_diff_income"/>
|
||||
<field name="default_cash_difference_expense_account_id" ref="cash_diff_expense"/>
|
||||
<field name="account_journal_early_pay_discount_loss_account_id" ref="cash_discount_loss"/>
|
||||
<field name="account_journal_early_pay_discount_gain_account_id" ref="cash_discount_gain"/>
|
||||
<field name="default_pos_receivable_account_id" ref="pos_receivable"/>
|
||||
<field name="property_tax_payable_account_id" ref="tax_payable"/>
|
||||
<field name="property_tax_receivable_account_id" ref="tax_receivable"/>
|
||||
</record>
|
||||
<record id="sale_tax_template" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="configurable_chart_template"/>
|
||||
<field name="name">Tax 15%</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="tax_group_id" ref="tax_group_15"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {'repartition_type': 'base'}),
|
||||
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('tax_received'),
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {'repartition_type': 'base'}),
|
||||
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('tax_received'),
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="purchase_tax_template" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="configurable_chart_template"/>
|
||||
<field name="name">Purchase Tax 15%</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_15"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {'repartition_type': 'base'}),
|
||||
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('tax_paid'),
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {'repartition_type': 'base'}),
|
||||
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('tax_paid'),
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<!-- Try to instanciate for relevant companies -->
|
||||
</data>
|
||||
<data noupdate="1">
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_generic_coa.configurable_chart_template')]"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
42
odoo-bringout-oca-ocb-l10n_generic_coa/pyproject.toml
Normal file
42
odoo-bringout-oca-ocb-l10n_generic_coa/pyproject.toml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_generic_coa"
|
||||
version = "16.0.0"
|
||||
description = "Generic - Accounting - Odoo addon"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-account>=16.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.11"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/bringout/0"
|
||||
repository = "https://github.com/bringout/0"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["l10n_generic_coa"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue