Initial import from Docker volume
This commit is contained in:
14
modules/account_syscohada/__init__.py
Executable file
14
modules/account_syscohada/__init__.py
Executable file
@@ -0,0 +1,14 @@
|
||||
# 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
|
||||
|
||||
from . import account
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
account.CreateChart,
|
||||
module='account_syscohada', type_='wizard')
|
||||
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.pyc
Executable file
BIN
modules/account_syscohada/__pycache__/__init__.cpython-311.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/__pycache__/account.cpython-311.opt-1.pyc
Executable file
BIN
modules/account_syscohada/__pycache__/account.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/__pycache__/account.cpython-311.pyc
Executable file
BIN
modules/account_syscohada/__pycache__/account.cpython-311.pyc
Executable file
Binary file not shown.
27
modules/account_syscohada/account.py
Executable file
27
modules/account_syscohada/account.py
Executable 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
|
||||
9999
modules/account_syscohada/account_syscohada_2001_fr.xml
Executable file
9999
modules/account_syscohada/account_syscohada_2001_fr.xml
Executable file
File diff suppressed because it is too large
Load Diff
10365
modules/account_syscohada/account_syscohada_2016_fr.xml
Executable file
10365
modules/account_syscohada/account_syscohada_2016_fr.xml
Executable file
File diff suppressed because it is too large
Load Diff
3
modules/account_syscohada/locale/bg.po
Executable file
3
modules/account_syscohada/locale/bg.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ca.po
Executable file
3
modules/account_syscohada/locale/ca.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/cs.po
Executable file
3
modules/account_syscohada/locale/cs.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/de.po
Executable file
3
modules/account_syscohada/locale/de.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/es.po
Executable file
3
modules/account_syscohada/locale/es.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/es_419.po
Executable file
3
modules/account_syscohada/locale/es_419.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/et.po
Executable file
3
modules/account_syscohada/locale/et.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fa.po
Executable file
3
modules/account_syscohada/locale/fa.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fi.po
Executable file
3
modules/account_syscohada/locale/fi.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/fr.po
Executable file
3
modules/account_syscohada/locale/fr.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/hu.po
Executable file
3
modules/account_syscohada/locale/hu.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/id.po
Executable file
3
modules/account_syscohada/locale/id.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/it.po
Executable file
3
modules/account_syscohada/locale/it.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/lo.po
Executable file
3
modules/account_syscohada/locale/lo.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/lt.po
Executable file
3
modules/account_syscohada/locale/lt.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/nl.po
Executable file
3
modules/account_syscohada/locale/nl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/pl.po
Executable file
3
modules/account_syscohada/locale/pl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/pt.po
Executable file
3
modules/account_syscohada/locale/pt.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ro.po
Executable file
3
modules/account_syscohada/locale/ro.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/ru.po
Executable file
3
modules/account_syscohada/locale/ru.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/sl.po
Executable file
3
modules/account_syscohada/locale/sl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/tr.po
Executable file
3
modules/account_syscohada/locale/tr.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/uk.po
Executable file
3
modules/account_syscohada/locale/uk.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/account_syscohada/locale/zh_CN.po
Executable file
3
modules/account_syscohada/locale/zh_CN.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
2
modules/account_syscohada/tests/__init__.py
Executable file
2
modules/account_syscohada/tests/__init__.py
Executable 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/tests/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
BIN
modules/account_syscohada/tests/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/tests/__pycache__/__init__.cpython-311.pyc
Executable file
BIN
modules/account_syscohada/tests/__pycache__/__init__.cpython-311.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/tests/__pycache__/test_module.cpython-311.opt-1.pyc
Executable file
BIN
modules/account_syscohada/tests/__pycache__/test_module.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/account_syscohada/tests/__pycache__/test_module.cpython-311.pyc
Executable file
BIN
modules/account_syscohada/tests/__pycache__/test_module.cpython-311.pyc
Executable file
Binary file not shown.
28
modules/account_syscohada/tests/test_module.py
Executable file
28
modules/account_syscohada/tests/test_module.py
Executable 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
|
||||
8
modules/account_syscohada/tryton.cfg
Executable file
8
modules/account_syscohada/tryton.cfg
Executable file
@@ -0,0 +1,8 @@
|
||||
[tryton]
|
||||
version=7.2.0
|
||||
depends:
|
||||
account
|
||||
ir
|
||||
xml:
|
||||
account_syscohada_2001_fr.xml
|
||||
account_syscohada_2016_fr.xml
|
||||
Reference in New Issue
Block a user