[ADD] Allows new apps section

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-09-12 18:21:39 -05:00
parent 2b29d76d05
commit ae6284f0ca
3 changed files with 37 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
apps/
community/
core/
custom/

View File

@ -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;;

View File

@ -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/