From ce367e8ce0609b303d40adf6c8fa1eac30bd9336 Mon Sep 17 00:00:00 2001 From: aserrador Date: Tue, 5 May 2026 13:09:56 -0500 Subject: [PATCH] feat(module): Add module for google integration --- .dev/requirements_dev.txt | 3 +++ .dev/trytond.cfg | 4 +--- .gitmodules | 4 ++++ Dockerfile_Test | 6 ++++-- Rakefile | 2 +- modules/google_integration | 1 + requirements.txt | 3 +++ trytond.conf | 3 ++- 8 files changed, 19 insertions(+), 7 deletions(-) create mode 160000 modules/google_integration diff --git a/.dev/requirements_dev.txt b/.dev/requirements_dev.txt index f14fa59..e9f9c73 100644 --- a/.dev/requirements_dev.txt +++ b/.dev/requirements_dev.txt @@ -1,3 +1,6 @@ +google-api-python-client==2.195.0 +google-auth-httplib2==0.3.1 +google-auth-oauthlib==1.3.1 inotify==0.2.10 honcho==2.0.0 pudb==2025.1 diff --git a/.dev/trytond.cfg b/.dev/trytond.cfg index d71e043..cbd0e73 100755 --- a/.dev/trytond.cfg +++ b/.dev/trytond.cfg @@ -1,6 +1,4 @@ [web] listen = 0.0.0.0:8000 root=/var/lib/trytond/www - -cors = - http://localhost:5173 +cors=http://localhost:5173/ diff --git a/.gitmodules b/.gitmodules index eaa6318..b8669ed 100644 --- a/.gitmodules +++ b/.gitmodules @@ -48,3 +48,7 @@ path = modules/account_co_pyme url = ssh://git@gitea.onecluster.org:6666/OneTeam/trytondo-account_co_pyme.git branch = 7.6 +[submodule "modules/google_integration"] + path = modules/google_integration + url = ssh://git@gitea.onecluster.org:6666/OneTeam/trytondo-google_integration.git + branch = main diff --git a/Dockerfile_Test b/Dockerfile_Test index cd83991..e79dafd 100755 --- a/Dockerfile_Test +++ b/Dockerfile_Test @@ -1,5 +1,7 @@ # TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile -FROM python:3.11-bullseye +FROM debian:12-slim # trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore` -RUN apt-get update && apt-get install -y postgresql-client +RUN apt-get update && \ + apt-get install -y postgresql-client python3-pip curl && \ + rm -rf /var/lib/apt/lists/* diff --git a/Rakefile b/Rakefile index 327e7d5..080e3a8 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ end desc 'poblar entorno' task :init => [:up] do - compose('exec', 'test.dev', 'pip3 install psycopg2 flake8') + compose('exec', 'test.dev', 'pip3 install psycopg2-binary flake8 --break-system-packages') compose('exec', 'test.dev', "bash .dev/install_module.sh") end diff --git a/modules/google_integration b/modules/google_integration new file mode 160000 index 0000000..fc43341 --- /dev/null +++ b/modules/google_integration @@ -0,0 +1 @@ +Subproject commit fc433410289a5c2f694523136ad8e11d54c33ab0 diff --git a/requirements.txt b/requirements.txt index 2b6b8fc..e968502 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ +google-api-python-client==2.195.0 +google-auth-httplib2==0.3.1 +google-auth-oauthlib==1.3.1 qrcode==6.1 pydot==3.0.0 tqdm==4.67.1 diff --git a/trytond.conf b/trytond.conf index d58c68e..32e7c08 100644 --- a/trytond.conf +++ b/trytond.conf @@ -4,7 +4,8 @@ root=/var/lib/trytond/www cors= https://appdemo.naliia.co https://app.naliia.co - + http://localhost:5173 + [database] list=True