Skip to content

Commit d4e3b18

Browse files
committed
[IMP] l10n_syscohada,l10n_*: add syscebnl coa for associations
Added the accounts and account groups for SYSCEBNL (for Associations). We need to create new taxes, to adapt to these accounts. As they are completely different, we can't make a common base for SYSCOHADA vs SYSCEBNL. closes odoo#174646 X-original-commit: 4ba6ff6 Related: odoo/enterprise#67434 Signed-off-by: Ruben Gomes (rugo) <[email protected]>
1 parent 522fcb3 commit d4e3b18

File tree

141 files changed

+2562
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+2562
-35
lines changed

Diff for: addons/account/tests/test_account_all_l10n.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def try_loading_patch(self, template_code, company, install_demo=True):
5555
for template_code, template in env['account.chart.template']._get_chart_template_mapping().items()
5656
if template_code not in already_loaded_codes
5757
# We can't make it disappear from the list, but we raise a UserError if it's not already the COA
58-
and template_code != 'syscohada'
58+
and template_code not in ('syscohada', 'syscebnl')
5959
]
6060
companies = env['res.company'].create([
6161
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"id","sequence","name","auto_apply","vat_required","country_id","country_group_id","tax_ids/tax_src_id","tax_ids/tax_dest_id"
2+
"syscebnl_fiscal_position_template_1","1","National","1","","base.bf","","",""
3+
"syscebnl_fiscal_position_template_2","3","International","1","","","","",""
4+
"","","","","","","","syscebnl_tva_sale_18","syscebnl_tva_export_0"
5+
"","","","","","","","syscebnl_tva_sale_10","syscebnl_tva_export_0"
6+
"","","","","","","","syscebnl_tva_purchase_18","syscebnl_tva_import_0"
7+
"","","","","","","","syscebnl_tva_purchase_10","syscebnl_tva_import_0"
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"id","name","description","invoice_label","amount","amount_type","type_tax_use","tax_group_id","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/tag_ids","repartition_line_ids/factor_percent","name@fr","description@fr"
2+
"syscebnl_tva_sale_18","18%","","","18.0","percent","sale","syscebnl_tax_group_18","base","invoice","","+BF_01||+BF_15_base","","",""
3+
"","","","","","","","","tax","invoice","syscebnl_443","+BF_15_tax","","",""
4+
"","","","","","","","","base","refund","","-BF_01||-BF_15_base","","",""
5+
"","","","","","","","","tax","refund","syscebnl_443","+BF_25","","",""
6+
"syscebnl_tva_sale_10","10%","10% services","","10.0","percent","sale","syscebnl_tax_group_10","base","invoice","","+BF_04||+BF_16_base","","",""
7+
"","","","","","","","","tax","invoice","syscebnl_443","+BF_16_tax","","",""
8+
"","","","","","","","","base","refund","","-BF_04||-BF_16_base","","",""
9+
"","","","","","","","","tax","refund","syscebnl_443","+BF_25","","",""
10+
"syscebnl_tva_sale_self_18","18% SD","18% Self-delivery","False","18.0","percent","sale","syscebnl_tax_group_18","base","invoice","","+BF_02||+BF_15_base","","18% LASM","18% Livraison à soi-même"
11+
"","","","","","","","","tax","invoice","syscebnl_443","-BF_15_tax","-100","",""
12+
"","","","","","","","","tax","invoice","syscebnl_445","+BF_20","","",""
13+
"","","","","","","","","base","refund","","-BF_02||-BF_15_base","","",""
14+
"","","","","","","","","tax","refund","syscebnl_443","+BF_25","-100","",""
15+
"","","","","","","","","tax","refund","syscebnl_445","-BF_20","","",""
16+
"syscebnl_tva_purchase_18","18%","","","18.0","percent","purchase","syscebnl_tax_group_18","base","invoice","","","","",""
17+
"","","","","","","","","tax","invoice","syscebnl_445","+BF_20","","",""
18+
"","","","","","","","","base","refund","","","","",""
19+
"","","","","","","","","tax","refund","syscebnl_445","-BF_20","","",""
20+
"syscebnl_tva_purchase_10","10%","","","10.0","percent","purchase","syscebnl_tax_group_10","base","invoice","","","","",""
21+
"","","","","","","","","tax","invoice","syscebnl_445","+BF_20","","",""
22+
"","","","","","","","","base","refund","","","","",""
23+
"","","","","","","","","tax","refund","syscebnl_445","-BF_20","","",""
24+
"syscebnl_tva_export_0","0% EX","0% (export)","","0.0","","sale","syscebnl_tax_group_0","base","invoice","","+BF_11","","","0% (exportation)"
25+
"","","","","","","","","tax","invoice","","","","",""
26+
"","","","","","","","","base","refund","","-BF_11","","",""
27+
"","","","","","","","","tax","refund","","","","",""
28+
"syscebnl_tva_import_0","0% EX","0% (import)","","0.0","","purchase","syscebnl_tax_group_0","base","invoice","","","","","0% (importation)"
29+
"","","","","","","","","tax","invoice","","","","",""
30+
"","","","","","","","","base","refund","","","","",""
31+
"","","","","","","","","tax","refund","","","","",""
32+
"syscebnl_tva_exempt_0","0%","0% (exempt)","","0.0","","sale","syscebnl_tax_group_0","base","invoice","","+BF_13","","","0% (exonéré)"
33+
"","","","","","","","","tax","invoice","","","","",""
34+
"","","","","","","","","base","refund","","-BF_13","","",""
35+
"","","","","","","","","tax","refund","","","","",""
36+
"syscebnl_tva_purchase_exempt_0","0%","0% (exempt)","","0.0","","purchase","syscebnl_tax_group_0","base","invoice","","","","","0% (exonéré)"
37+
"","","","","","","","","tax","invoice","","","","",""
38+
"","","","","","","","","base","refund","","","","",""
39+
"","","","","","","","","tax","refund","","","","",""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"id","name","name@fr","tax_payable_account_id","tax_receivable_account_id"
2+
"syscebnl_tax_group_0","VAT 0%","T.V.A. 0%","syscebnl_443","syscebnl_445"
3+
"syscebnl_tax_group_10","VAT 10%","T.V.A. 10%","syscebnl_443","syscebnl_445"
4+
"syscebnl_tax_group_18","VAT 18%","T.V.A. 18%","syscebnl_443","syscebnl_445"

Diff for: addons/l10n_bf/i18n/fr.po

+14
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,20 @@ msgstr "IV. TVA Brute"
202202
msgid "Net VAT amount to pay [19 – (20+21-22+25+26+27)]"
203203
msgstr "Montant de la TVA nette à payer [19 – (20+21-22+25+26+27)] "
204204

205+
#. module: l10n_bf
206+
#. odoo-python
207+
#: code:addons/l10n_bf/models/template_bf_syscebnl.py:0
208+
#, python-format
209+
msgid "SYSCEBNL for Associations"
210+
msgstr "SYSCEBNL pour Associations"
211+
212+
#. module: l10n_bf
213+
#. odoo-python
214+
#: code:addons/l10n_bf/models/template_bf.py:0
215+
#, python-format
216+
msgid "SYSCOHADA for Companies"
217+
msgstr "SYSCOHADA pour Sociétés"
218+
205219
#. module: l10n_bf
206220
#: model:account.report.line,name:l10n_bf.account_tax_report_line_bf_net
207221
msgid "V. Net VAT"

Diff for: addons/l10n_bf/i18n/l10n_bf.pot

+14
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,20 @@ msgstr ""
202202
msgid "Net VAT amount to pay [19 – (20+21-22+25+26+27)]"
203203
msgstr ""
204204

205+
#. module: l10n_bf
206+
#. odoo-python
207+
#: code:addons/l10n_bf/models/template_bf_syscebnl.py:0
208+
#, python-format
209+
msgid "SYSCEBNL for Associations"
210+
msgstr ""
211+
212+
#. module: l10n_bf
213+
#. odoo-python
214+
#: code:addons/l10n_bf/models/template_bf.py:0
215+
#, python-format
216+
msgid "SYSCOHADA for Companies"
217+
msgstr ""
218+
205219
#. module: l10n_bf
206220
#: model:account.report.line,name:l10n_bf.account_tax_report_line_bf_net
207221
msgid "V. Net VAT"

Diff for: addons/l10n_bf/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from . import template_bf
2+
from . import template_bf_syscebnl

Diff for: addons/l10n_bf/models/template_bf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from odoo import models
1+
from odoo import models, _
22
from odoo.addons.account.models.chart_template import template
33

44

@@ -8,7 +8,7 @@ class AccountChartTemplate(models.AbstractModel):
88
@template('bf')
99
def _get_bf_template_data(self):
1010
return {
11-
'name': 'Syscohada for Burkina Faso',
11+
'name': _('SYSCOHADA for Companies'),
1212
'parent': 'syscohada',
1313
'code_digits': '6',
1414
}

Diff for: addons/l10n_bf/models/template_bf_syscebnl.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from odoo import models, _
2+
from odoo.addons.account.models.chart_template import template
3+
4+
5+
class AccountChartTemplate(models.AbstractModel):
6+
_inherit = 'account.chart.template'
7+
8+
@template('bf_syscebnl')
9+
def _get_bf_syscebnl_template_data(self):
10+
return {
11+
'name': _('SYSCEBNL for Associations'),
12+
'parent': 'syscebnl',
13+
'code_digits': '6',
14+
}
15+
16+
@template('bf_syscebnl', 'res.company')
17+
def _get_bf_syscebnl_res_company(self):
18+
company_values = super()._get_syscebnl_res_company()
19+
company_values[self.env.company.id].update(
20+
{
21+
'account_fiscal_country_id': 'base.bf',
22+
'account_sale_tax_id': 'syscebnl_tva_sale_18',
23+
'account_purchase_tax_id': 'syscebnl_tva_purchase_18',
24+
}
25+
)
26+
return company_values
27+
28+
@template('bf_syscebnl', 'account.account')
29+
def _get_bf_syscebnl_account_account(self):
30+
return self._parse_csv('bf_syscebnl', 'account.account', module='l10n_syscohada')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"id","sequence","name","auto_apply","vat_required","country_id","country_group_id","tax_ids/tax_src_id","tax_ids/tax_dest_id"
2+
"syscebnl_fiscal_position_template_1","1","National","1","","base.bj","","",""
3+
"syscebnl_fiscal_position_template_2","3","International","1","","","","",""
4+
"","","","","","","","syscebnl_tva_sale_18","syscebnl_tva_export_0"
5+
"","","","","","","","syscebnl_tva_sale_service_18","syscebnl_tva_export_0"
6+
"","","","","","","","syscebnl_tva_exempt_0","syscebnl_tva_export_exempt_0"
7+
"","","","","","","","syscebnl_tva_purchase_18","syscebnl_tva_import_0"
8+
"","","","","","","","syscebnl_tva_purchase_asset_18","syscebnl_tva_import_0"
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
"id","name","description","invoice_label","amount","amount_type","type_tax_use","tax_group_id","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/tag_ids","repartition_line_ids/factor_percent","name@fr","description@fr"
2+
"syscebnl_tva_sale_18","18% G","18% goods","","18.0","percent","sale","syscebnl_tax_group_18","base","invoice","","+BJ_4","","","18% biens"
3+
"","","","","","","","","tax","invoice","syscebnl_443","+BJ_13","","",""
4+
"","","","","","","","","base","refund","","-BJ_4","","",""
5+
"","","","","","","","","tax","refund","syscebnl_443","-BJ_13","","",""
6+
"syscebnl_tva_sale_service_18","18% S","18% services","","18.0","percent","sale","syscebnl_tax_group_18","base","invoice","","+BJ_4","","",""
7+
"","","","","","","","","tax","invoice","syscebnl_443","+BJ_13","","",""
8+
"","","","","","","","","base","refund","","-BJ_4","","",""
9+
"","","","","","","","","tax","refund","syscebnl_443","-BJ_13","","",""
10+
"syscebnl_tva_sale_self_18","18% SD","18% Self-delivery","","18.0","percent","sale","syscebnl_tax_group_18","base","invoice","","+BJ_5","","18% LASM","18% Livraison à soi-même"
11+
"","","","","","","","","tax","invoice","syscebnl_443","-BJ_13","-100","",""
12+
"","","","","","","","","tax","invoice","syscebnl_445","+BJ_8","","",""
13+
"","","","","","","","","base","refund","","-BJ_5","","",""
14+
"","","","","","","","","tax","refund","syscebnl_443","+BJ_13","-100","",""
15+
"","","","","","","","","tax","refund","syscebnl_445","-BJ_8","","",""
16+
"syscebnl_tva_purchase_18","18%","","","18.0","percent","purchase","syscebnl_tax_group_18","base","invoice","","","","",""
17+
"","","","","","","","","tax","invoice","syscebnl_445","+BJ_8","","",""
18+
"","","","","","","","","base","refund","","","","",""
19+
"","","","","","","","","tax","refund","syscebnl_445","-BJ_8","","",""
20+
"syscebnl_tva_purchase_asset_18","18% Asset","18% (asset)","","18.0","percent","purchase","syscebnl_tax_group_18","base","invoice","","","","18% Immo","18% (immobilisation)"
21+
"","","","","","","","","tax","invoice","syscebnl_445","+BJ_9","","",""
22+
"","","","","","","","","base","refund","","","","",""
23+
"","","","","","","","","tax","refund","syscebnl_445","-BJ_9","","",""
24+
"syscebnl_tva_export_0","0% EX","0% (export)","","0.0","","sale","syscebnl_tax_group_0","base","invoice","","+BJ_2","","","0% (exportation)"
25+
"","","","","","","","","tax","invoice","","","","",""
26+
"","","","","","","","","base","refund","","-BJ_2","","",""
27+
"","","","","","","","","tax","refund","","","","",""
28+
"syscebnl_tva_export_exempt_0","0% EX NI","0% (export of non-taxable products)","False","0.0","","sale","syscebnl_tax_group_0","base","invoice","","+BJ_3","","","0% (exportation de produits non taxables)"
29+
"","","","","","","","","tax","invoice","","","","",""
30+
"","","","","","","","","base","refund","","-BJ_3","","",""
31+
"","","","","","","","","tax","refund","","","","",""
32+
"syscebnl_tva_import_0","0% EX","0% (import)","","0.0","","purchase","syscebnl_tax_group_0","base","invoice","","","","","0% (importation)"
33+
"","","","","","","","","tax","invoice","","","","",""
34+
"","","","","","","","","base","refund","","","","",""
35+
"","","","","","","","","tax","refund","","","","",""
36+
"syscebnl_tva_exempt_0","0%","0% (exempt)","","0.0","","sale","syscebnl_tax_group_0","base","invoice","","+BJ_1","","","0% (exonéré)"
37+
"","","","","","","","","tax","invoice","","","","",""
38+
"","","","","","","","","base","refund","","-BJ_1","","",""
39+
"","","","","","","","","tax","refund","","","","",""
40+
"syscebnl_tva_purchase_exempt_0","0%","0% (exempt)","","0.0","","purchase","syscebnl_tax_group_0","base","invoice","","","","","0% (exonéré)"
41+
"","","","","","","","","tax","invoice","","","","",""
42+
"","","","","","","","","base","refund","","","","",""
43+
"","","","","","","","","tax","refund","","","","",""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"id","name","name@fr","tax_payable_account_id","tax_receivable_account_id"
2+
"syscebnl_tax_group_0","VAT 0%","T.V.A. 0%","syscebnl_443","syscebnl_445"
3+
"syscebnl_tax_group_18","VAT 18%","T.V.A. 18%","syscebnl_443","syscebnl_445"

Diff for: addons/l10n_bj/i18n/fr.po

+15
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@ msgstr "III. Déductions"
120120
msgid "IV. NET VAT"
121121
msgstr "IV. TVA Nette"
122122

123+
#. module: l10n_bj
124+
#. odoo-python
125+
#: code:addons/l10n_bj/models/template_bj_syscebnl.py:0
126+
#, python-format
127+
msgid "SYSCEBNL for Associations"
128+
msgstr "SYSCEBNL pour Associations"
129+
130+
#. module: l10n_bj
131+
#. odoo-python
132+
#: code:addons/l10n_bj/models/template_bj.py:0
133+
#, python-format
134+
msgid "SYSCOHADA for Companies"
135+
msgstr "SYSCEBNL pour Sociétés"
136+
137+
123138
#. module: l10n_bj
124139
#: model:account.report,name:l10n_bj.account_tax_report_bj
125140
msgid "VAT Report"

Diff for: addons/l10n_bj/i18n/l10n_bj.pot

+14
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ msgstr ""
120120
msgid "IV. NET VAT"
121121
msgstr ""
122122

123+
#. module: l10n_bj
124+
#. odoo-python
125+
#: code:addons/l10n_bj/models/template_bj_syscebnl.py:0
126+
#, python-format
127+
msgid "SYSCEBNL for Associations"
128+
msgstr ""
129+
130+
#. module: l10n_bj
131+
#. odoo-python
132+
#: code:addons/l10n_bj/models/template_bj.py:0
133+
#, python-format
134+
msgid "SYSCOHADA for Companies"
135+
msgstr ""
136+
123137
#. module: l10n_bj
124138
#: model:account.report,name:l10n_bj.account_tax_report_bj
125139
msgid "VAT Report"

Diff for: addons/l10n_bj/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from . import template_bj
2+
from . import template_bj_syscebnl

Diff for: addons/l10n_bj/models/template_bj.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from odoo import models
1+
from odoo import models, _
22
from odoo.addons.account.models.chart_template import template
33

44

@@ -8,7 +8,7 @@ class AccountChartTemplate(models.AbstractModel):
88
@template('bj')
99
def _get_bj_template_data(self):
1010
return {
11-
'name': 'Syscohada for Benin',
11+
'name': _('SYSCOHADA for Companies'),
1212
'parent': 'syscohada',
1313
'code_digits': '6',
1414
}

Diff for: addons/l10n_bj/models/template_bj_syscebnl.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from odoo import models, _
2+
from odoo.addons.account.models.chart_template import template
3+
4+
5+
class AccountChartTemplate(models.AbstractModel):
6+
_inherit = 'account.chart.template'
7+
8+
@template('bj_syscebnl')
9+
def _get_bj_syscebnl_template_data(self):
10+
return {
11+
'name': _('SYSCEBNL for Associations'),
12+
'parent': 'syscebnl',
13+
'code_digits': '6',
14+
}
15+
16+
@template('bj_syscebnl', 'res.company')
17+
def _get_bj_syscebnl_res_company(self):
18+
company_values = super()._get_syscebnl_res_company()
19+
company_values[self.env.company.id].update(
20+
{
21+
'account_fiscal_country_id': 'base.bj',
22+
'account_sale_tax_id': 'syscebnl_tva_sale_18',
23+
'account_purchase_tax_id': 'syscebnl_tva_purchase_18',
24+
}
25+
)
26+
return company_values
27+
28+
@template('bj_syscebnl', 'account.account')
29+
def _get_bj_syscebnl_account_account(self):
30+
return self._parse_csv('bj_syscebnl', 'account.account', module='l10n_syscohada')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"id","sequence","name","auto_apply","vat_required","country_id","country_group_id","tax_ids/tax_src_id","tax_ids/tax_dest_id"
2+
"syscebnl_fiscal_position_template_1","1","National","1","","base.cd","","",""
3+
"syscebnl_fiscal_position_template_2","3","International","1","","","","",""
4+
"","","","","","","","syscebnl_tva_sale_16","syscebnl_tva_export_0"
5+
"","","","","","","","syscebnl_tva_sale_16_services","syscebnl_tva_export_0"
6+
"","","","","","","","syscebnl_tva_purchase_good_16","syscebnl_tva_import_goods_16"
7+
"","","","","","","","syscebnl_tva_purchase_assets_16","syscebnl_tva_import_assets_16"

0 commit comments

Comments
 (0)