Compare commits

...

32 Commits

Author SHA1 Message Date
236b4cf428 [DOC] Get module ready for deprecation 2025-05-21 13:36:06 -05:00
1cea2385da [FIX] Try enabling compression on db transfer 2025-05-13 21:15:20 +00:00
ecdd27630f [ADD] New pip module: xmltodict 2025-03-19 23:36:59 +00:00
15317c42e0 Enable SQL script for dev settings 2025-01-03 21:33:50 +00:00
e3ae7c2fff Update SQL script with dev settings 2025-01-03 21:33:20 +00:00
3a6bd84322 [FIX] Typo 2023-08-01 18:48:41 +00:00
84d3f8ab1f [FIX] Changes location of backups 2023-08-01 18:48:24 +00:00
d8766e9dcd [ADD] Odoo Open Upgrade Python module 2023-03-29 22:38:39 +00:00
a4e4f2e523 [ADD] Colombian holidays python module 2023-03-29 05:16:53 +00:00
9f9a1c65ee [FIX] Prevent updating to Telegram v20 2023-03-28 00:19:00 +00:00
1e85b40716 [ADD] Installs python-magic module 2023-03-16 21:42:39 -05:00
4b5d9244bf Require older version of pandas
In order to prevent conflict with python-dateutil==2.7.3 in Odoo requirements
2023-02-20 23:45:35 +00:00
8429f321e4 [ADD] Pandas Python module 2023-02-14 21:19:28 +00:00
4168606904 Updates path in Odoo conf file 2023-01-17 14:58:51 +00:00
91f7694ba7 [ADD] New python modules for OCA REST 2022-11-05 07:31:31 -05:00
80fb749189 Removes web_kanban module from config file 2022-10-12 23:29:31 +00:00
802b9bf676 Adds geopy module 2022-10-12 23:28:47 +00:00
ec03f1f3f7 [ADD] Python module numpy 2022-09-15 02:56:43 +00:00
0057817c70 [ADD] Python module for Telegram bot 2022-05-28 16:36:50 +00:00
f6e9be496b [FIX] Changes owner of /opt/odoo to root
Prevents `fatal: unsafe repository (REPO is owned by someone else)` error
2022-05-19 20:02:58 +00:00
f217fd56d0 [FIX] New location for electronic invoice vendor modules 2022-02-08 19:46:00 +00:00
47c54df9df [ADD] Pings healthchecks server on start and completion 2021-10-28 18:34:04 -05:00
d7483be456 [ADD] New addons path for purchased apps 2021-09-23 18:15:17 +00:00
f488c825df [ADD] Install additional requirements for vendor modules
SSL for electronic invoice
2021-09-06 22:15:26 +00:00
9da2cc36e7 [FIX] Installs module unidecode in python venv 2021-07-13 02:00:38 +00:00
7e5ad9cd89 Merge pull request '[FIX] Reverts manual fix for bug 62569' (#2) from revert_gevent_manual_fix into main
Reviewed-on: #2
2021-01-31 06:06:23 +00:00
24049338ef [FIX] Reverts manual fix for bug 62569 2021-01-31 01:05:13 -05:00
bda1d5f1da [FIX] Installs recommended package for attachment indexing 2020-12-23 00:08:19 -05:00
920dad4423 [FIX] Wrong version of gevent causes chat not to work interactively 2020-12-22 21:13:57 -05:00
c2268d642d [MINOR] Updates new config names and removes obsolete ones 2020-12-22 21:13:14 -05:00
88b9e46f26 FIX Disables SQL script until it is updated to v14 2020-12-19 04:04:45 -05:00
e0581fb2ae Merge pull request 'change-folder-structure' (#1) from change-folder-structure into main
Reviewed-on: #1
2020-12-19 03:01:04 +00:00
8 changed files with 76 additions and 52 deletions

View File

@ -19,8 +19,8 @@ config:
permissions: '0600'
content: !!binary |
H4sICCW ... 🔒 gzipped and base64-encoded private key, registered as
deploy key in Gitea, in both the odoo_running_code and
ansible-role-odoo8container repos. ... AAA==
deploy key in Gitea, in both the odoo14_running_code and
ansible-role-odoo14 repos. ... AAA==
- encoding: gzip
owner: root:root
path: /root/.ssh/id_ed25519.pub
@ -34,6 +34,14 @@ config:
content: !!binary |
H4sICPS ... 🔒 gzipped and base64-encoded host key for gitea ... AAA==
runcmd:
- [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14-lxd.git" ]
- [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14.git" ]
description: LXD profile for Odoo 14
```
## Healthchecks integration
<img src="https://check.agofer.net/badge/877dc356-7dcc-4997-bc28-cb684ba358a0/rJvkR6XH/restore.svg">
The role _pings_ our **Healthchecks** server, as proof of a successful
database restore.

View File

@ -1,7 +1,23 @@
- hosts: localhost
gather_facts: yes
user: root
pre_tasks:
- name: Register the start of the restore with Healthchecks server
uri:
url: '{{ postgresqlrestore_check_url }}/start'
roles:
- odoo
post_tasks:
- name: Register a successful restore with Healthchecks server
uri:
url: '{{ postgresqlrestore_check_url }}'
method: POST
body: '{{ ansible_hostname }}.{{ dominio }}'
vars:
dominio: agofer.net

View File

@ -15,3 +15,11 @@
db: agofer
path_to_script: /home/odoo/change-odoo-settings.sql
# Warning: path_to_script is deprecated; switch to postgresql_script:
# - name: Run a script directly on the database
# become: true
# become_user: postgres
# postgresql_script:
# login_db: agofer
# path: /home/odoo/change-odoo-settings.sql

View File

@ -18,7 +18,6 @@
owner: odoo
loop:
- /var/log/odoo
- /opt/odoo
- /home/odoo/.local/share/Odoo/filestore/agofer
- /home/odoo/src
- /etc/odoo
@ -39,12 +38,10 @@
pip:
virtualenv: /home/odoo/.venv/odoo
virtualenv_command: python3.8 -m venv
requirements: /opt/odoo/core/requirements.txt
# Possible errors in gevent module with Ubuntu 20.04
# (chat, stars, don't update interactively on screen)
# $ pip install --upgrade gevent
# Successfully installed gevent-20.9.0 greenlet-0.4.17 ...
requirements: '{{ item }}'
loop:
- /opt/odoo/core/requirements.txt
- /opt/odoo/vendor/requirements.txt
- name: Download and install wkhtmltopdf
apt:

View File

@ -14,7 +14,6 @@
- name: Retrieve database backup
synchronize:
mode: pull
compress: no
src: '{{ database_location }}'
dest: /home/odoo/db_odoo_agofer.sql.gz

View File

@ -1,49 +1,31 @@
-- Update Odoo database with new settings for the current development/testing
-- install
-- Update Odoo database with dev/testing settings
-- Change Electronic Invoice settings to prevent invoices from being sent
UPDATE "res_company" SET "ei_automatic_gen"=false,"ei_ack_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Acuse_Recibo/',"ei_dian_result_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Dian_result',"ei_write_folder"='/INVOICE/LAB/800216499/800216499_01/IN/',"ei_automatic_read"=false,"ei_error_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Error/',"ei_decision_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Aceptacion_y_rechazo/',"ei_server_type"='test',"xml_automatic_generation"=false,"sftp_url"='fecolab.cen.biz',"ei_voucher_folder"='/INVOICE/LAB/800216499/800216499_01/OUT/Comprobantes/' WHERE id IN (1);
UPDATE "res_company" SET "einvoicing_enabled"=false,"ei_environment"='test',"edi_ds_ambient"='2' WHERE id = 1;
-- Deactivate Electronic Invoice periodic checks and downloads
UPDATE "ir_cron" SET "active"=false WHERE id IN (25);
UPDATE "ir_cron" SET "active"=false WHERE id IN (27);
UPDATE "ir_cron" SET "active"=false WHERE id IN (25, 27);
-- Change Client ID for Google OAuth authentication
UPDATE "auth_oauth_provider" SET "client_id"='839348907645-51gmj31708h2vuts2sorqh842uhohoce.apps.googleusercontent.com' WHERE id IN (3);
UPDATE "auth_oauth_provider" SET "client_id"='839348907645-51gmj31708h2vuts2sorqh842uhohoce.apps.googleusercontent.com' WHERE id = 3;
{#
-- Change password for user 'admin'
-- Change password for user 'sistemas'
UPDATE "res_users" SET "password_crypt"='$pbkdf2-sha512$6400$tnYOAUCoNSbkHKMUAmAMgQ$UTwtQj2mGD1KnW5.S7dq0qxMw5M4tuWb2ckr8vB8k7MLrwG5aDyWDA6sLXawE..xrLDjvYrtxgIRvNf97knYVQ' WHERE id = 2;
UPDATE "res_users" SET "password_crypt"='$pbkdf2-sha512$6400$tnYOAUCoNSbkHKMUAmAMgQ$UTwtQj2mGD1KnW5.S7dq0qxMw5M4tuWb2ckr8vB8k7MLrwG5aDyWDA6sLXawE..xrLDjvYrtxgIRvNf97knYVQ' WHERE id IN (5);
UPDATE "res_users" SET "password"='' WHERE id = 2;
UPDATE "res_users" SET "password"='' WHERE id = 5;
UPDATE "res_users" SET "share"=false WHERE id = 2;
#}
-- Delete incoming and change outgoing mail servers
UPDATE "res_users" SET "share"=false WHERE id = 5;
DELETE FROM fetchmail_server where id = 1;
-- Delete incoming and outgoing mail server settings
DELETE FROM wkf_instance where res_id=1 and res_type='fetchmail.server';
DELETE FROM fetchmail_server where id IN (1);
DELETE FROM wkf_instance where res_id=1 and res_type='ir.mail_server';
DELETE FROM ir_mail_server where id IN (1);
DELETE FROM wkf_instance where res_id=4 and res_type='ir.mail_server';
DELETE FROM ir_mail_server where id IN (4);
DELETE FROM wkf_instance where res_id=5 and res_type='ir.mail_server';
DELETE FROM ir_mail_server where id IN (5);
DELETE FROM ir_model_data where id IN (1576);
UPDATE "ir_mail_server" SET "name"='Mailpit',"smtp_host"='mailtest.agofer.net',"active"=true where id = 1;
-- Change base URL
UPDATE "ir_config_parameter" SET "value"='https://{{ ansible_hostname }}.{{ dominio }}' WHERE id IN (5);
UPDATE "ir_config_parameter" SET "value"='https://{{ ansible_hostname }}.{{ dominio }}' WHERE id = 4;

View File

@ -9,7 +9,7 @@ db_user = odoo
db_name = agofer
list_db = True
dbfilter = ^agofer$
addons_path = /opt/odoo/core/addons,/opt/odoo/community,/opt/odoo/custom,/opt/odoo/vendor
addons_path = /opt/odoo/core/addons,/opt/odoo/community,/opt/odoo/apps,/opt/odoo/vendor,/opt/odoo/vendor01,/opt/odoo/custom
without_demo = all
test_enable = False
timezone = America/Bogota
@ -38,10 +38,8 @@ limit-memory-hard = 9395240960
#-----------------------------------------------------------------------------
# Acceso
#-----------------------------------------------------------------------------
proxy_mode = True
xmlrpcs = False
http_interface = 127.0.0.1
http_port = 8090
longpolling_port = 8082
xmlrpc_port = 8090
xmlrpc_interface = 127.0.0.1
netrpc_interface = 127.0.0.1
proxy_mode = True
server_wide_modules = web,l10n_co_account_e_invoicing,bi_sql_editor

View File

@ -6,7 +6,9 @@ wkhtmltopdf_location: 'https://github.com/wkhtmltopdf/wkhtmltopdf/releases/downl
sourcecode_location: 'ssh://git@gitea.agofer.net:22001/Agofer/odoo14_running_code.git'
database_location: 'rsync://backups.bogota.agofer/db14/db_odoo_agofer.gz'
database_location: 'rsync://servidor6cbe.dmz.agofer/db14/db_odoo_agofer.gz'
postgresqlrestore_check_url: 'https://check.agofer.net/ping/cf93353e-9601-4b62-8020-711a1913a505'
apt_packages:
- build-essential
@ -47,4 +49,18 @@ python_packages:
- setuptools
- wheel
- paramiko
- pdfminer
- pdfminer.six
- unidecode
- python-telegram-bot==13.15
- numpy
- geopy
- cerberus
- pyquerystring
- parse-accept-language
- apispec
- cachetools
- pandas==1.3.5
- python-magic
- holidays_co
- openupgradelib
- xmltodict