first commit
This commit is contained in:
2
modules/account_syscohada/__init__.py
Normal file
2
modules/account_syscohada/__init__.py
Normal 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.
|
||||
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
modules/account_syscohada/__pycache__/account.cpython-311.pyc
Normal file
BIN
modules/account_syscohada/__pycache__/account.cpython-311.pyc
Normal file
Binary file not shown.
27
modules/account_syscohada/account.py
Normal file
27
modules/account_syscohada/account.py
Normal 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
|
||||
8248
modules/account_syscohada/account_syscohada_2001_fr.xml
Normal file
8248
modules/account_syscohada/account_syscohada_2001_fr.xml
Normal file
File diff suppressed because it is too large
Load Diff
8695
modules/account_syscohada/account_syscohada_2016_fr.xml
Normal file
8695
modules/account_syscohada/account_syscohada_2016_fr.xml
Normal file
File diff suppressed because it is too large
Load Diff
3
modules/account_syscohada/locale/bg.po
Normal file
3
modules/account_syscohada/locale/bg.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ca.po
Normal file
3
modules/account_syscohada/locale/ca.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/cs.po
Normal file
3
modules/account_syscohada/locale/cs.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/de.po
Normal file
3
modules/account_syscohada/locale/de.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/es.po
Normal file
3
modules/account_syscohada/locale/es.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/es_419.po
Normal file
3
modules/account_syscohada/locale/es_419.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/et.po
Normal file
3
modules/account_syscohada/locale/et.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fa.po
Normal file
3
modules/account_syscohada/locale/fa.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fi.po
Normal file
3
modules/account_syscohada/locale/fi.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fr.po
Normal file
3
modules/account_syscohada/locale/fr.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/hu.po
Normal file
3
modules/account_syscohada/locale/hu.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/id.po
Normal file
3
modules/account_syscohada/locale/id.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/it.po
Normal file
3
modules/account_syscohada/locale/it.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/lo.po
Normal file
3
modules/account_syscohada/locale/lo.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/lt.po
Normal file
3
modules/account_syscohada/locale/lt.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/nl.po
Normal file
3
modules/account_syscohada/locale/nl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/pl.po
Normal file
3
modules/account_syscohada/locale/pl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/pt.po
Normal file
3
modules/account_syscohada/locale/pt.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ro.po
Normal file
3
modules/account_syscohada/locale/ro.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ru.po
Normal file
3
modules/account_syscohada/locale/ru.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/sl.po
Normal file
3
modules/account_syscohada/locale/sl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/tr.po
Normal file
3
modules/account_syscohada/locale/tr.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/uk.po
Normal file
3
modules/account_syscohada/locale/uk.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/zh_CN.po
Normal file
3
modules/account_syscohada/locale/zh_CN.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
2
modules/account_syscohada/tests/__init__.py
Normal file
2
modules/account_syscohada/tests/__init__.py
Normal 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.
|
||||
Binary file not shown.
Binary file not shown.
28
modules/account_syscohada/tests/test_module.py
Normal file
28
modules/account_syscohada/tests/test_module.py
Normal 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
|
||||
12
modules/account_syscohada/tryton.cfg
Normal file
12
modules/account_syscohada/tryton.cfg
Normal 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
|
||||
Reference in New Issue
Block a user