forked from fgarcia-humanoide/install
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodules_install.sh
More file actions
115 lines (88 loc) · 6.41 KB
/
modules_install.sh
File metadata and controls
115 lines (88 loc) · 6.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# some_modules
#!/bin/bash
################################################################################
# Script for Installation: some odoo modules
#
################################################################################
##fixed parameters
#openerp
OE_USER="odoo"
OE_HOME="/opt/$OE_USER"
OE_HOME_EXT="/opt/$OE_USER/$OE_USER-server"
#Enter version for checkout "8.0" for version 8.0, "7.0 (version 7), saas-4, saas-5 (opendays version) and "master" for trunk
OE_VERSION="8.0"
echo -e "\n==== Installing spanish localization ===="
sudo git clone --branch 8.0 https://github.com/OCA/l10n-spain.git $OE_HOME/l10n-spain
echo -e "\n==== Installing some modules ===="
sudo git clone --branch 8.0 https://github.com/OCA/account-financial-tools.git $OE_HOME/account-financial-tools
sudo git clone --branch 8.0 https://github.com/OCA/account-financial-reporting.git $OE_HOME/account-financial-reporting
sudo git clone --branch 8.0 https://github.com/OCA/account-payment.git $OE_HOME/account-payment
sudo git clone --branch 8.0 https://github.com/OCA/knowledge.git $OE_HOME/knowledge
sudo git clone --branch 8.0 https://github.com/OCA/reporting-engine.git $OE_HOME/reporting-engine
sudo git clone --branch 8.0 https://github.com/OCA/partner-contact.git $OE_HOME/partner-contact
sudo git clone --branch 8.0 https://github.com/OCA/server-tools.git $OE_HOME/server-tools
sudo git clone --branch 8.0 https://github.com/OCA/web.git $OE_HOME/web
sudo git clone --branch 8.0 https://github.com/OCA/bank-payment.git $OE_HOME/bank-payment
sudo git clone --branch 7.0 https://github.com/OCA/l10n-spain.git $OE_HOME/libro_diario_7
sudo git clone --branch 8.0 https://github.com/OCA/pos.git $OE_HOME/pos
sudo git clone --branch 8.0 https://github.com/OCA/bank-statement-import.git $OE_HOME/bank-statement-import
sudo git clone https://github.com/fgarcia-humanoide/modulos.git $OE_HOME/modulos
echo -e "\n---- Create some links ----"
sudo ln -s $OE_HOME/l10n-spain/account_balance_reporting/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_account_asset/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_account_balance_report/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_account_invoice_sequence/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod130/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod340/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod340_type0/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod347/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod303/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod349/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod111/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_aeat_mod115/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_account_bank_statement_import_n43/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_pos/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/libro_diario_7/l10n_es_account_financial_report/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_fiscal_year_closing/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_partner/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_partner_mercantil/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/l10n_es_toponyms/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/account_refund_original $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/server-tools/disable_openerp_online/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/server-tools/mass_editing/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/web/web_export_view/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/partner-contact/base_location $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/partner-contact/base_partner_sequence $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-tools/account_renumber $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-tools/account_journal_always_check_date $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-tools/account_chart_update $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-tools/account_invoice_constraint_chronology $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-tools/account_invoice_currency $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-reporting/account_export_csv $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-financial-reporting/account_move_line_report_xls $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-statement-import/account_bank_statement_import/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/pos/pos_pricelist/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/l10n-spain/account_balance_reporting_xls/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_banking_mandate/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_banking_pain_base/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_banking_payment_export/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_banking_payment_transfer/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_banking_sepa_direct_debit/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_direct_debit/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/knowledge/attachment_preview/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/knowledge/attachments_to_filesystem/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/partner-contact/base_location_geonames_import/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/knowledge/document_page/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/knowledge/document_url/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/reporting-engine/report_custom_filename/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/reporting-engine/report_xls/ $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-payment/account_due_list $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/account-payment/account_due_list_payment_mode $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/bank-payment/account_payment_partner $OE_HOME/custom/addons/
sudo ln -s $OE_HOME/modulos/ $OE_HOME/custom/addons/
echo -e "\n---- Setting permissions on home folder ----"
sudo chown -R $OE_USER:$OE_USER $OE_HOME/*
echo "Done! Some modules installed"
echo "Recuerda wkhtmltopdf 0.12.1 System parameters -> key:report.url value:http://localhost:8069"