Skip to content
Permalink
Browse files

[ADD][l10n_ma]: Add new module for Moroccan Localization

  • Loading branch information...
saadthaifa committed Feb 1, 2019
1 parent 52057da commit 3a822c159de7baa8893efe343193b79067919e12
@@ -1,2 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.


from . import models
@@ -1,27 +1,33 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

# Copyright (c) 2010 kazacube (http://kazacube.com).
# Copyright (c) 2010 karizma (http://karizma.ma).

{
'name': 'Maroc - Accounting',
'author': 'kazacube',
'version': '1.0',
'author': 'Karizma Conseil',
'category': 'Localization',
'description': """
This is the base module to manage the accounting chart for Maroc.
This is the base module to manage the accounting chart for Morocco.
=================================================================
Ce Module charge le modèle du plan de comptes standard Marocain et permet de
générer les états comptables aux normes marocaines (Bilan, CPC (comptes de
produits et charges), balance générale à 6 colonnes, Grand livre cumulatif...).
L'intégration comptable a été validé avec l'aide du Cabinet d'expertise comptable
Seddik au cours du troisième trimestre 2010.""",
'website': 'http://www.kazacube.com',
'depends': ['base', 'account'],
It adds the ICE code to the customer invoices according to the new Moroccan finance law.
Ce Module charge le modèle du plan de comptes standard Marocain et permet de configurer les taxes et les comptes comptables convenablement.
il permet également d'ajouter l'ICE sur les factures conformément à la nouvelle loi de finance marocaine""",

'website': 'http://www.karizma.ma',
'depends': ['account', 'web'],
'data': [
'data/account_group.xml',
'data/l10n_ma_chart_data.xml',
'data/account_data.xml',
'data/account_tax_data.xml',
'data/account_chart_template_data.xml',
'data/account_tax_data.xml',
'data/account_chart_template_configure_data.xml',
'views/partner_view.xml',
'views/company.xml',
'reports/invoice_report.xml',
'reports/footer.xml',
],
}
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<function model="account.chart.template" name="try_loading_for_current_company">
<value eval="[ref('l10n_ma.l10n_kzm_temp_chart')]"/>
</function>
</data>
</odoo>

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="account_group_1_5" model="account.group">
<field name="code_prefix">1_5</field>
<field name="name">Classe 1_5</field>
</record>

<record id="account_group_1" model="account.group">
<field name="code_prefix">1</field>
<field name="name">Classe 1</field>
<field name="parent_id" ref="l10n_ma.account_group_1_5"/>
</record>
<record id="account_group_2" model="account.group">
<field name="code_prefix">2</field>
<field name="name">Classe 2</field>
<field name="parent_id" ref="l10n_ma.account_group_1_5"/>
</record>
<record id="account_group_3" model="account.group">
<field name="code_prefix">3</field>
<field name="name">Classe 3</field>
<field name="parent_id" ref="l10n_ma.account_group_1_5"/>
</record>
<record id="account_group_4" model="account.group">
<field name="code_prefix">4</field>
<field name="name">Classe 4</field>
<field name="parent_id" ref="l10n_ma.account_group_1_5"/>
</record>
<record id="account_group_5" model="account.group">
<field name="code_prefix">5</field>
<field name="name">Classe 5</field>
<field name="parent_id" ref="l10n_ma.account_group_1_5"/>
</record>

<record id="account_group_6_7" model="account.group">
<field name="code_prefix">6_7</field>
<field name="name">Classe 6_7</field>
</record>
<record id="account_group_6" model="account.group">
<field name="code_prefix">6</field>
<field name="name">Classe 6</field>
<field name="parent_id" ref="l10n_ma.account_group_6_7"/>
</record>
<record id="account_group_7" model="account.group">
<field name="code_prefix">7</field>
<field name="name">Classe 7</field>
<field name="parent_id" ref="l10n_ma.account_group_6_7"/>
</record>


</data>
</odoo>
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- account chart -->
<record id="l10n_kzc_temp_chart" model="account.chart.template">
<field name="property_account_receivable_id" ref="pcg_3488"/>
<field name="property_account_payable_id" ref="pcg_4488"/>
<field name="property_account_income_categ_id" ref="pcg_7111"/>
<field name="property_account_expense_categ_id" ref="pcg_1486"/>
<field name="income_currency_exchange_account_id" ref="pcg_733"/>
<field name="expense_currency_exchange_account_id" ref="pcg_633"/>
</record>

<!-- Account Tags -->
<record id="tax_tag_01" model="account.account.tag">
@@ -49,6 +40,28 @@
</record>

<!-- Account Tax Template -->
<record model="account.tax.template" id="tva_vt20">
<field name="name">TVA 20% VENTES</field>
<field name="description">20%</field>
<field name="type_tax_use">sale</field>
<field name="refund_account_id" ref="pcg_445520"/>
<field name="account_id" ref="pcg_445520"/>
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_01')])]"/>
</record>
<record model="account.tax.template" id="tva_ac20">
<field name="name">TVA 20% ACHATS</field>
<field name="description">20%</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_3455220"/>
<field name="account_id" ref="pcg_3455220"/>
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_06')])]"/>
</record>
<record model="account.tax.template" id="tva_exo">
<field name="name">Exonere de TVA VENTES</field>
<field name="description">Exonere de TVA VENTES</field>
@@ -57,8 +70,7 @@
<field name="account_id"/>
<field name="amount">0</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="tax_group_id" ref="tax_group_tva_0"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
</record>
<record model="account.tax.template" id="tva_exo1">
<field name="name">Exonere de TVA ACHATS</field>
@@ -68,115 +80,83 @@
<field name="account_id"/>
<field name="amount">0</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="tax_group_id" ref="tax_group_tva_0"/>
</record>
<record model="account.tax.template" id="tva_vt20">
<field name="name">TVA 20% VENTES</field>
<field name="description">TVA 20% VENTES</field>
<field name="type_tax_use">sale</field>
<field name="refund_account_id" ref="pcg_445520"/>
<field name="account_id" ref="pcg_445520"/>
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_01')])]"/>
<field name="tax_group_id" ref="tax_group_tva_20"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
</record>
<record model="account.tax.template" id="tva_vt14">
<field name="name">TVA 14% VENTES</field>
<field name="description">TVA 14% VENTES</field>
<field name="description">14%</field>
<field name="type_tax_use">sale</field>
<field name="refund_account_id" ref="pcg_445514"/>
<field name="account_id" ref="pcg_445514"/>
<field name="amount">14</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_02')])]"/>
<field name="tax_group_id" ref="tax_group_tva_14"/>
</record>
<record model="account.tax.template" id="tva_vt10">
<field name="name">TVA 10% VENTES</field>
<field name="description">TVA 10% VENTES</field>
<field name="description">10%</field>
<field name="type_tax_use">sale</field>
<field name="refund_account_id" ref="pcg_445510"/>
<field name="account_id" ref="pcg_445510"/>
<field name="amount">10</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_03')])]"/>
<field name="tax_group_id" ref="tax_group_tva_10"/>
</record>
<record model="account.tax.template" id="tva_vt07">
<field name="name">TVA 7% VENTES</field>
<field name="description">TVA 7% VENTES</field>
<field name="description">7%</field>
<field name="type_tax_use">sale</field>
<field name="refund_account_id" ref="pcg_445507"/>
<field name="account_id" ref="pcg_445507"/>
<field name="amount">7</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_04')])]"/>
<field name="tax_group_id" ref="tax_group_tva_7"/>
</record>
<record model="account.tax.template" id="tva_ac20">
<field name="name">TVA 20% ACHATS</field>
<field name="description">TVA 20% ACHATS</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_3455220"/>
<field name="account_id" ref="pcg_3455220"/>
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_06')])]"/>
<field name="tax_group_id" ref="tax_group_tva_20"/>
</record>
<record model="account.tax.template" id="tva_acim">
<field name="name">TVA 20% ACHATS (immobilisation)</field>
<field name="description">TVA 20% ACHATS (immobilisation)</field>
<field name="description">20%</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_34551"/>
<field name="account_id" ref="pcg_34551"/>
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_09')])]"/>
<field name="tax_group_id" ref="tax_group_tva_20"/>
</record>
<record model="account.tax.template" id="tva_ac14">
<field name="name">TVA 14% ACHATS</field>
<field name="description">TVA 14% ACHATS</field>
<field name="description">14%</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_3455214"/>
<field name="account_id" ref="pcg_3455214"/>
<field name="amount">14</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_07')])]"/>
<field name="tax_group_id" ref="tax_group_tva_14"/>
</record>
<record model="account.tax.template" id="tva_ac10">
<field name="name">TVA 10% ACHATS</field>
<field name="description">TVA 10% ACHATS</field>
<field name="description">10%</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_3455210"/>
<field name="account_id" ref="pcg_3455210"/>
<field name="amount">10</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_05')])]"/>
<field name="tax_group_id" ref="tax_group_tva_10"/>
</record>
<record model="account.tax.template" id="tva_ac07">
<field name="name">TVA 7% ACHATS</field>
<field name="description">TVA 7% ACHATS</field>
<field name="description">7%</field>
<field name="type_tax_use">purchase</field>
<field name="refund_account_id" ref="pcg_3455207"/>
<field name="account_id" ref="pcg_3455207"/>
<field name="amount">7</field>
<field name="amount_type">percent</field>
<field name="chart_template_id" ref="l10n_kzc_temp_chart"/>
<field name="chart_template_id" ref="l10n_kzm_temp_chart"/>
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_08')])]"/>
<field name="tax_group_id" ref="tax_group_tva_7"/>
</record>
</odoo>
Oops, something went wrong.

0 comments on commit 3a822c1

Please sign in to comment.
You can’t perform that action at this time.