Compare commits
No commits in common. "76fb479b677ab5031b375c53eda7675bd6dd961a" and "d18cef15f5d953f84421fbd612400cf1e4fcd2b4" have entirely different histories.
76fb479b67
...
d18cef15f5
34
.env_exmple
34
.env_exmple
@ -1,34 +0,0 @@
|
|||||||
# version Trytond server example 6.0
|
|
||||||
TRYTOND_VERSION=7.0
|
|
||||||
TRYTON_ADMIN_PASS=admin
|
|
||||||
TRYTON_ADMIN_EMAIL=admin@admin.com
|
|
||||||
|
|
||||||
# TRYTOND operation mode
|
|
||||||
TRYTON_PORT=8000
|
|
||||||
DEVELOP=True
|
|
||||||
WORKER=False
|
|
||||||
|
|
||||||
# if the module repository is private
|
|
||||||
GITEA_USER=USER
|
|
||||||
GITEA_PASSWORD=PASSWORD
|
|
||||||
GITEA_ACCESS_TOKEN=TOKEN
|
|
||||||
GITEA_DOMAIN=git.domain.org
|
|
||||||
|
|
||||||
# Choise a valid file seed from into folder ./sets
|
|
||||||
SET=./sets/modules.txt
|
|
||||||
|
|
||||||
# Database configuration
|
|
||||||
DB_PASSWORD=SUp3r-pass*DB
|
|
||||||
POSTGRES_DB=tryton
|
|
||||||
DB_HOSTNAME=db
|
|
||||||
POSTGRES_PASSWORD=SUp3r-pass*DB
|
|
||||||
|
|
||||||
#SMTP This value is True or False
|
|
||||||
SMTP=False
|
|
||||||
SMTP_TYPE=smtps+ssl
|
|
||||||
SMTP_USER=email@example.com
|
|
||||||
SMTP_PASSWORD=PASSWORD
|
|
||||||
SMTP_DOMAIN=mail.example.org
|
|
||||||
SMTP_PORT=465
|
|
||||||
SMTP_FROM="NAME_FROM <email@example.com>"
|
|
||||||
SMTP_EMAIL=email@example.org
|
|
7
deployes/modules.txt
Normal file
7
deployes/modules.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
sale_one_click
|
||||||
|
sale_printer
|
||||||
|
electronic_mail_imap
|
||||||
|
patches
|
||||||
|
sale
|
||||||
|
purchase
|
||||||
|
product
|
221
gitignore
221
gitignore
@ -1,221 +0,0 @@
|
|||||||
# ---> Python
|
|
||||||
# Byte-compiled / optimized / DLL files
|
|
||||||
__pycache__/
|
|
||||||
*.py[cod]
|
|
||||||
*$py.class
|
|
||||||
*.bk
|
|
||||||
|
|
||||||
# C extensions
|
|
||||||
*.so
|
|
||||||
|
|
||||||
# Deploy Modules
|
|
||||||
modules/
|
|
||||||
|
|
||||||
# Distribution / packaging
|
|
||||||
.Python
|
|
||||||
build/
|
|
||||||
develop-eggs/
|
|
||||||
dist/
|
|
||||||
downloads/
|
|
||||||
eggs/
|
|
||||||
.eggs/
|
|
||||||
lib/
|
|
||||||
lib64/
|
|
||||||
parts/
|
|
||||||
sdist/
|
|
||||||
var/
|
|
||||||
wheels/
|
|
||||||
pip-wheel-metadata/
|
|
||||||
share/python-wheels/
|
|
||||||
*.egg-info/
|
|
||||||
.installed.cfg
|
|
||||||
*.egg
|
|
||||||
MANIFEST
|
|
||||||
|
|
||||||
# PyInstaller
|
|
||||||
# Usually these files are written by a python script from a template
|
|
||||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
||||||
*.manifest
|
|
||||||
*.spec
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
pip-delete-this-directory.txt
|
|
||||||
|
|
||||||
# Unit test / coverage reports
|
|
||||||
htmlcov/
|
|
||||||
.tox/
|
|
||||||
.nox/
|
|
||||||
.coverage
|
|
||||||
.coverage.*
|
|
||||||
.cache
|
|
||||||
nosetests.xml
|
|
||||||
coverage.xml
|
|
||||||
*.cover
|
|
||||||
*.py,cover
|
|
||||||
.hypothesis/
|
|
||||||
.pytest_cache/
|
|
||||||
|
|
||||||
# Translations
|
|
||||||
*.mo
|
|
||||||
*.pot
|
|
||||||
|
|
||||||
# Django stuff:
|
|
||||||
*.log
|
|
||||||
local_settings.py
|
|
||||||
db.sqlite3
|
|
||||||
db.sqlite3-journal
|
|
||||||
|
|
||||||
# Flask stuff:
|
|
||||||
instance/
|
|
||||||
.webassets-cache
|
|
||||||
|
|
||||||
# Scrapy stuff:
|
|
||||||
.scrapy
|
|
||||||
|
|
||||||
# Sphinx documentation
|
|
||||||
docs/_build/
|
|
||||||
|
|
||||||
# PyBuilder
|
|
||||||
target/
|
|
||||||
|
|
||||||
# Jupyter Notebook
|
|
||||||
.ipynb_checkpoints
|
|
||||||
|
|
||||||
# IPython
|
|
||||||
profile_default/
|
|
||||||
ipython_config.py
|
|
||||||
|
|
||||||
# pyenv
|
|
||||||
.python-version
|
|
||||||
|
|
||||||
# pipenv
|
|
||||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
||||||
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
||||||
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
||||||
# install all needed dependencies.
|
|
||||||
#Pipfile.lock
|
|
||||||
|
|
||||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
||||||
__pypackages__/
|
|
||||||
|
|
||||||
# Celery stuff
|
|
||||||
celerybeat-schedule
|
|
||||||
celerybeat.pid
|
|
||||||
|
|
||||||
# SageMath parsed files
|
|
||||||
*.sage.py
|
|
||||||
|
|
||||||
# Environments
|
|
||||||
.env
|
|
||||||
.venv
|
|
||||||
env/
|
|
||||||
venv/
|
|
||||||
ENV/
|
|
||||||
env.bak/
|
|
||||||
venv.bak/
|
|
||||||
|
|
||||||
# Spyder project settings
|
|
||||||
.spyderproject
|
|
||||||
.spyproject
|
|
||||||
|
|
||||||
# Rope project settings
|
|
||||||
.ropeproject
|
|
||||||
|
|
||||||
# mkdocs documentation
|
|
||||||
/site
|
|
||||||
|
|
||||||
# mypy
|
|
||||||
.mypy_cache/
|
|
||||||
.dmypy.json
|
|
||||||
dmypy.json
|
|
||||||
|
|
||||||
# Pyre type checker
|
|
||||||
.pyre/
|
|
||||||
|
|
||||||
# ---> Emacs
|
|
||||||
# -*- mode: gitignore; -*-
|
|
||||||
*~
|
|
||||||
\#*\#
|
|
||||||
/.emacs.desktop
|
|
||||||
/.emacs.desktop.lock
|
|
||||||
*.elc
|
|
||||||
auto-save-list
|
|
||||||
tramp
|
|
||||||
.\#*
|
|
||||||
|
|
||||||
# Org-mode
|
|
||||||
.org-id-locations
|
|
||||||
*_archive
|
|
||||||
|
|
||||||
# flymake-mode
|
|
||||||
*_flymake.*
|
|
||||||
|
|
||||||
# eshell files
|
|
||||||
/eshell/history
|
|
||||||
/eshell/lastdir
|
|
||||||
|
|
||||||
# elpa packages
|
|
||||||
/elpa/
|
|
||||||
|
|
||||||
# reftex files
|
|
||||||
*.rel
|
|
||||||
|
|
||||||
# AUCTeX auto folder
|
|
||||||
/auto/
|
|
||||||
|
|
||||||
# cask packages
|
|
||||||
.cask/
|
|
||||||
dist/
|
|
||||||
|
|
||||||
# Flycheck
|
|
||||||
flycheck_*.el
|
|
||||||
|
|
||||||
# server auth directory
|
|
||||||
/server/
|
|
||||||
|
|
||||||
# projectiles files
|
|
||||||
.projectile
|
|
||||||
|
|
||||||
# directory configuration
|
|
||||||
.dir-locals.el
|
|
||||||
|
|
||||||
# network security
|
|
||||||
/network-security.data
|
|
||||||
|
|
||||||
|
|
||||||
# ---> Vim
|
|
||||||
# Swap
|
|
||||||
[._]*.s[a-v][a-z]
|
|
||||||
!*.svg # comment out if you don't need vector files
|
|
||||||
[._]*.sw[a-p]
|
|
||||||
[._]s[a-rt-v][a-z]
|
|
||||||
[._]ss[a-gi-z]
|
|
||||||
[._]sw[a-p]
|
|
||||||
|
|
||||||
# Session
|
|
||||||
Session.vim
|
|
||||||
Sessionx.vim
|
|
||||||
|
|
||||||
# Temporary
|
|
||||||
.netrwhist
|
|
||||||
*~
|
|
||||||
# Auto-generated tag files
|
|
||||||
tags
|
|
||||||
# Persistent undo
|
|
||||||
[._]*.un~
|
|
||||||
|
|
||||||
# ---> VirtualEnv
|
|
||||||
# Virtualenv
|
|
||||||
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
|
|
||||||
.Python
|
|
||||||
[Bb]in
|
|
||||||
[Ii]nclude
|
|
||||||
[Ll]ib
|
|
||||||
[Ll]ib64
|
|
||||||
[Ll]ocal
|
|
||||||
[Ss]cripts
|
|
||||||
pyvenv.cfg
|
|
||||||
.venv
|
|
||||||
pip-selfcheck.json
|
|
||||||
|
|
11
modules.py
11
modules.py
@ -22,8 +22,7 @@ parser.add_argument(
|
|||||||
nargs='+', # Permitir múltiples valores
|
nargs='+', # Permitir múltiples valores
|
||||||
type=str,
|
type=str,
|
||||||
choices=empresas_permitidos,
|
choices=empresas_permitidos,
|
||||||
help='Empresas (debe elegir algunas de de las siguientes: OneTeam, NaNtic)'
|
help='Empresas (debe elegir algunas de de las siguientes: OneTeam, NaNtic, Tekopora)')
|
||||||
)
|
|
||||||
|
|
||||||
# Parsear los argumentos de la línea de comandos
|
# Parsear los argumentos de la línea de comandos
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
@ -40,10 +39,9 @@ PREFIX_ORG = {'NaNtic': 'trytond-',
|
|||||||
'OneTeam': 'trytondo-',
|
'OneTeam': 'trytondo-',
|
||||||
'Trytond': 'trytond'}
|
'Trytond': 'trytond'}
|
||||||
|
|
||||||
with open('sets/modules.txt', 'r') as file_txt:
|
with open('deployes/modules.txt', 'r') as file_txt:
|
||||||
selected_modules: list = [
|
selected_modules: list = [m.replace('\n', '')
|
||||||
m.replace('\n', '')
|
for m in file_txt.readlines()]
|
||||||
for m in file_txt.readlines()]
|
|
||||||
file_txt.close()
|
file_txt.close()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -56,6 +54,7 @@ try:
|
|||||||
|
|
||||||
for modulo in list_modules:
|
for modulo in list_modules:
|
||||||
if modulo in selected_modules:
|
if modulo in selected_modules:
|
||||||
|
|
||||||
PREFIX = PREFIX_ORG[empresa]
|
PREFIX = PREFIX_ORG[empresa]
|
||||||
link_module = f'{URL_GITEA}{empresa}/{PREFIX}{modulo}'
|
link_module = f'{URL_GITEA}{empresa}/{PREFIX}{modulo}'
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit a13049d224b7a0ec4481bc45c855fd84b3356af2
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit e969585cacfcf30d6b63cb755073263b363c2cf2
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 90865e43ea61c9766eb4995984b27ccf0bd3fbfc
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 0ca3720bdac118944fbc01a25eb396b1d2666ae0
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit cda31d13f5a840b76bf6f9fb4ec7dcd20c361964
|
|
@ -1,9 +0,0 @@
|
|||||||
account_co_co
|
|
||||||
account_co_pyme
|
|
||||||
account_co_reports
|
|
||||||
account_invoice_facho
|
|
||||||
account_invoice_subtype
|
|
||||||
account_stock_continental
|
|
||||||
purchase
|
|
||||||
sale
|
|
||||||
notification_email
|
|
Loading…
Reference in New Issue
Block a user