first commit

This commit is contained in:
root
2026-03-14 09:42:12 +00:00
commit 0adbd20c2c
10991 changed files with 1646955 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,27 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool, PoolMeta
class CreateChart(metaclass=PoolMeta):
__name__ = 'account.create_chart'
def default_properties(self, fields):
pool = Pool()
ModelData = pool.get('ir.model.data')
defaults = super().default_properties(fields)
for lang in ['fr']:
for version in ['2001', '2016']:
try:
template_id = ModelData.get_id(
'account_syscohada.root_%s_%s' % (version, lang))
except KeyError:
continue
if self.account.account_template.id == template_id:
defaults['account_receivable'] = self.get_account(
'account_syscohada.4111_%s_%s' % (version, lang))
defaults['account_payable'] = self.get_account(
'account_syscohada.4011_%s_%s' % (version, lang))
break
return defaults

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,3 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,28 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.modules.account.tests import create_chart
from trytond.modules.company.tests import create_company, set_company
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
class AccountSYSCOHADATestCase(ModuleTestCase):
"Test Account SYSCOHADA module"
module = 'account_syscohada'
language = 'fr'
@with_transaction()
def test_create_chart_2001(self):
company = create_company()
with set_company(company):
create_chart(
company, chart=self.module + '.root_2001_' + self.language)
@with_transaction()
def test_create_chart_2016(self):
company = create_company()
with set_company(company):
create_chart(
company, chart=self.module + '.root_2016_' + self.language)
del ModuleTestCase

View File

@@ -0,0 +1,12 @@
[tryton]
version=7.8.1
depends:
account
ir
xml:
account_syscohada_2001_fr.xml
account_syscohada_2016_fr.xml
[register]
wizard:
account.CreateChart