Initial commit: L10N_Americas packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:52 +02:00
commit 12b27ce151
714 changed files with 79328 additions and 0 deletions

View file

@ -0,0 +1,59 @@
# OHADA - Accounting
This module implements the accounting chart for OHADA area.
===========================================================
It allows any company or association to manage its financial accounting.
Countries that use OHADA are the following:
-------------------------------------------
Benin, Burkina Faso, Cameroon, Central African Republic, Comoros, Congo,
Ivory Coast, Gabon, Guinea, Guinea Bissau, Equatorial Guinea, Mali, Niger,
Democratic Republic of the Congo, Senegal, Chad, Togo.
## Installation
```bash
pip install odoo-bringout-oca-ocb-l10n_syscohada
```
## Dependencies
This addon depends on:
- account
## Manifest Information
- **Name**: OHADA - Accounting
- **Version**: N/A
- **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_syscohada`.
## 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
- Reports: doc/REPORTS.md
- Security: doc/SECURITY.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

View 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_syscohada Module - l10n_syscohada
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.

View file

@ -0,0 +1,3 @@
# Configuration
Refer to Odoo settings for l10n_syscohada. Configure related models, access rights, and options as needed.

View file

@ -0,0 +1,3 @@
# Controllers
This module does not define custom HTTP controllers.

View file

@ -0,0 +1,5 @@
# Dependencies
This addon depends on:
- [account](../../odoo-bringout-oca-ocb-account)

View 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_syscohada or install in UI.

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-oca-ocb-l10n_syscohada"
# or
uv pip install odoo-bringout-oca-ocb-l10n_syscohada"
```

View file

@ -0,0 +1,11 @@
# Models
Detected core models and extensions in l10n_syscohada.
```mermaid
classDiagram
```
Notes
- Classes show model technical names; fields omitted for brevity.
- Items listed under _inherit are extensions of existing models.

View file

@ -0,0 +1,6 @@
# Overview
Packaged Odoo addon: l10n_syscohada. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon l10n_syscohada
- License: LGPL-3

View file

@ -0,0 +1,3 @@
# Reports
This module does not define custom reports.

View 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

View file

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

View 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_syscohada
```

View file

@ -0,0 +1,3 @@
# Wizards
This module does not include UI wizards.

View file

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2010-2011 BAAMTU SARL (<http://www.baamtu.sn>).
# contact: leadsn@baamtu.com

View file

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2010-2011 BAAMTU SARL (<http://www.baamtu.sn>).
# contact: leadsn@baamtu.com
{
'name' : 'OHADA - Accounting',
'author' : 'Baamtu Senegal',
'category': 'Accounting/Localizations/Account Charts',
'icon': '/l10n_syscohada/static/description/icon.jpeg',
'description': """
This module implements the accounting chart for OHADA area.
===========================================================
It allows any company or association to manage its financial accounting.
Countries that use OHADA are the following:
-------------------------------------------
Benin, Burkina Faso, Cameroon, Central African Republic, Comoros, Congo,
Ivory Coast, Gabon, Guinea, Guinea Bissau, Equatorial Guinea, Mali, Niger,
Democratic Republic of the Congo, Senegal, Chad, Togo.
""",
'website': 'http://www.baamtu.com',
'depends' : [
'account',
],
'data': [
'data/menuitem_data.xml',
'data/account_tax_group_data.xml',
'data/l10n_syscohada_chart_data.xml',
'data/account.account.template.csv',
'data/l10n_syscohada_chart_post_data.xml',
'data/account_tax_template_data.xml',
'data/account_chart_template_data.xml',
],
'demo': [
'demo/demo_company.xml',
],
'license': 'LGPL-3',
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<function model="account.chart.template" name="try_loading">
<value eval="[ref('l10n_syscohada.syscohada_chart_template')]"/>
</function>
</data>
</odoo>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="tax_group_0" model="account.tax.group">
<field name="name">TVA 0%</field>
</record>
<record id="tax_group_18" model="account.tax.group">
<field name="name">TVA 18%</field>
</record>
</data>
</odoo>

View file

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--
#
# SYSCOHADA : Définition des taux de TVA SYSCOHADA
# Auteur : BAAMTU Sénégal
# Version du fichier : 1.0
# Date : 02/2010
#
#
-->
<record model="account.tax.template" id="tva_sale_18">
<field name="name">TVA 18% (vente)</field>
<field name="chart_template_id" ref="syscohada_chart_template"/>
<field name="amount">18</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_18"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('pcg_4431'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('pcg_4431'),
}),
]"/>
</record>
<record model="account.tax.template" id="tva_purchase_18">
<field name="name">TVA 18% (achat)</field>
<field name="chart_template_id" ref="syscohada_chart_template"/>
<field name="amount">18</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="tax_group_id" ref="tax_group_18"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('pcg_4452'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('pcg_4452'),
}),
]"/>
</record>
<record model="account.tax.template" id="tva_exonere">
<field name="name">Exonéré de TVA (vente)</field>
<field name="chart_template_id" ref="syscohada_chart_template"/>
<field name="amount">0</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_0"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {'repartition_type': 'tax'}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {'repartition_type': 'tax'}),
]"/>
</record>
<record model="account.tax.template" id="tva_achat_exonere">
<field name="name">Exonéré de TVA (achat)</field>
<field name="chart_template_id" ref="syscohada_chart_template"/>
<field name="amount">0</field>
<field name="type_tax_use">purchase</field>
<field name="tax_group_id" ref="tax_group_0"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {'repartition_type': 'tax'}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {'repartition_type': 'base'}),
(0,0, {'repartition_type': 'tax'}),
]"/>
</record>
</odoo>

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Chart Template -->
<record id="syscohada_chart_template" model="account.chart.template">
<field name="name">SYSCOHADA Révisé</field>
<field name="bank_account_code_prefix">521</field>
<field name="cash_account_code_prefix">571</field>
<field name="transfer_account_code_prefix">585</field>
<field name="code_digits">6</field>
<field name="currency_id" ref="base.XOF"/>
</record>
</odoo>

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="syscohada_chart_template" model="account.chart.template">
<field name="property_account_receivable_id" ref="pcg_4111"/>
<field name="property_account_payable_id" ref="pcg_4011"/>
<field name="property_account_expense_categ_id" ref="pcg_6011"/>
<field name="property_account_income_categ_id" ref="pcg_7011"/>
<field name="income_currency_exchange_account_id" ref="pcg_776"/>
<field name="expense_currency_exchange_account_id" ref="pcg_676"/>
<field name="default_pos_receivable_account_id" ref="pcg_4113"/>
<field name="account_journal_early_pay_discount_loss_account_id" ref="pcg_6019"/>
<field name="account_journal_early_pay_discount_gain_account_id" ref="pcg_7019"/>
</record>
</odoo>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<menuitem id="account_reports_syscohada_statements_menu" name="Syscohada" parent="account.menu_finance_reports" sequence="0" groups="account.group_account_readonly"/>
</odoo>

View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="partner_demo_company_syscohada" model="res.partner">
<field name="name">SN Company</field>
<field name="vat">0001462 2G3</field>
<field name="street">Rue SC 98</field>
<field name="city">Dakar</field>
<field name="country_id" ref="base.sn"/>
<field name="zip">10200</field>
<field name="phone">+963 944 567 890</field>
<field name="email">info@company.syscohadaexample.com</field>
<field name="website">www.syscohadaexample.com</field>
</record>
<record id="demo_company_syscohada" model="res.company">
<field name="name">SN Company</field>
<field name="partner_id" ref="partner_demo_company_syscohada"/>
</record>
<function model="res.company" name="_onchange_country_id">
<value eval="[ref('demo_company_syscohada')]"/>
</function>
<function model="res.users" name="write">
<value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
<value eval="{'company_ids': [(4, ref('l10n_syscohada.demo_company_syscohada'))]}"/>
</function>
<function model="account.chart.template" name="try_loading">
<value eval="[ref('l10n_syscohada.syscohada_chart_template')]"/>
<value model="res.company" eval="obj().env.ref('l10n_syscohada.demo_company_syscohada')"/>
</function>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -0,0 +1,42 @@
[project]
name = "odoo-bringout-oca-ocb-l10n_syscohada"
version = "16.0.0"
description = "OHADA - 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_syscohada"]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.4.1",
]