From ae6284f0cadaa708a045759447a126c9867ee4b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20E=2E=20G=C3=B3mez?= Date: Sun, 12 Sep 2021 18:21:39 -0500 Subject: [PATCH] [ADD] Allows new apps section --- .gitignore | 1 + install_odoo_code.sh | 19 +++++++++++++++++-- selected_oca_modules.txt | 19 +++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 498b413..1e529c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +apps/ community/ core/ custom/ diff --git a/install_odoo_code.sh b/install_odoo_code.sh index 158aedd..9e3bf42 100755 --- a/install_odoo_code.sh +++ b/install_odoo_code.sh @@ -13,12 +13,12 @@ OPTIONS="-av --exclude-from=common_exclude_patterns.txt --chown odoo:odoo" Help () { - echo "Usage: $0 [-h] -o={all|core|community|vendor|special|custom}" + echo "Usage: $0 [-h] -o={all|core|community|apps|vendor|special|custom}" echo echo "Options:" echo "-h Help (display this text)" echo "-o Modules to be installed (one of 'all', 'core', 'community'," - echo " 'vendor', 'special, 'custom'). Required." + echo " 'apps', 'vendor', 'special, 'custom'). Required." echo } @@ -50,6 +50,18 @@ cp_community () done < selected_oca_modules.txt } +cp_apps () +{ + REPO="Modules from Odoo Apps Store" + SRC=./apps/ + DEST=$DESTDIR/apps/ + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + echo "Install $REPO into production directory structure" + echo " …from $SRC to $DEST" + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + rsync $OPTIONS $SRC $DEST +} + cp_vendor () { REPO="Avancys v14 for Agofer" @@ -126,6 +138,9 @@ case $Modules in 'core') # Install Odoo core cp_core exit;; + 'apps') # Install modules from Apps Store + cp_apps + exit;; 'community') # Install OCA modules cp_community exit;; diff --git a/selected_oca_modules.txt b/selected_oca_modules.txt index 0efd912..3720392 100644 --- a/selected_oca_modules.txt +++ b/selected_oca_modules.txt @@ -1,3 +1,22 @@ +account-financial-reporting/account_financial_report/ +account-financial-tools/account_asset_management/ +account-financial-tools/account_fiscal_year/ +account-financial-tools/account_menu/ +account-invoicing/account_invoice_force_number/ +bank-payment/account_payment_mode/ +bank-payment/account_payment_order/ +bank-payment/account_payment_partner/ +credit-control/account_credit_control/ +helpdesk/helpdesk_mgmt/ +hr/hr_branch/ partner-contact/base_location/ partner-contact/partner_fax/ partner-contact/partner_identification/ +reporting-engine/bi_sql_editor/ +reporting-engine/report_xlsx/ +reporting-engine/report_xlsx_helper/ +server-auth/auth_oauth_multi_token/ +server-backend/base_user_role/ +server-ux/date_range/ +web/web_m2x_options/ +web/web_responsive/