[REF] Packaging: Backport of v8 packaging

[REF] Packaging: backport of a7ab5a4109
[REF] Packaging: backport of a700a1139e
[REF] Packaging: backport of 9d0bd2807e
[REF] Packaging: backport of b0722d3e5d
[REF] Packaging: backport of 24b2c93814
[REF] Packaging: backport of e874cdafaa
[REF] Packaging: backport of 56b61da163
[REF] Packaging: backport of be96dd8595
[REF] Packaging: backport of 50a4da99f0
[REF] Packaging: backport of 1c41f36993
[REF] Packaging: backport of cc11331733
[FIX] Packaging: backport of 1347163082
[REF] Package: backport of 93845d683c
[REF] Package: backport of 012bc01c11
[FIX] Package: partial apply of d9e72a3716
[REF] Package: backport of 67036feff4
[REF] Package: backport of 73de0138de
[REF] Package: backport of 30d987ed30
[REF] Package: backport of 29132669a1
[REF] Package: backport of 7db12dc47b
[REF] Package: backport of f668f9c6cd
[REF] Package: backport of 2cf4051a15
[REF] Packaging: backport of 735924878f
[REF] Packaging: backport of f2598ecdce
[REF] Package: backport of fd21912cfe
[REF] Package: backport of 9a8cdf49b0
[REF] Package: backport of 2f4984b838
[REF] Package: backport of 6e9edeeb46
[REF] Package: partial backport of d4624fa826
[REF] Package: backport of 9f13722f78
master
Simon Lejeune 9 years ago
parent 10984ad49a
commit 9ed6accd2e

@ -1,13 +1,24 @@
graft debian
graft doc
graft install
graft openerp
graft tests
graft win32
include README
include LICENSE
include MANIFEST.in
include gunicorn.conf.py
include openerp-server
include setup*
global-exclude *pyc *~ # Exclude possible garbage from previous graft.
include README.md
recursive-include openerp *.css
recursive-include openerp *.csv
recursive-include openerp *.gif
recursive-include openerp *.html
recursive-include openerp *.jpeg
recursive-include openerp *.jpg
recursive-include openerp *.js
recursive-include openerp *.md
recursive-include openerp *.png
recursive-include openerp *.po
recursive-include openerp *.rml
recursive-include openerp *.rng
recursive-include openerp *.rst
recursive-include openerp *.sass
recursive-include openerp *.sql
recursive-include openerp *.txt
recursive-include openerp *.ttf
recursive-include openerp *.woff
recursive-include openerp *.xsl
recursive-include openerp *.xml
recursive-include openerp *.yml
recursive-exclude * *.py[co]

8
debian/changelog vendored

@ -1,3 +1,9 @@
openerp (7.0.0) stable; urgency=low
* Refactored packaging
-- Simon Lejeune <sle@odoo.com> Wed, 23 Jul 2014 14:59:00 +0100
openerp (6.1-1) testing; urgency=low
* New major version, new packaging.
@ -536,4 +542,4 @@ tinyerp-server (3.1.1+debian-1) unstable; urgency=low
* Rebuild orig.tar.gz to remove unnecessary files in upstreams debian/.
* Added changelog from website.
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 16 Oct 2005 13:35:00 +0200
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 16 Oct 2005 13:35:00 +0200

2
debian/compat vendored

@ -1 +1 @@
7
9

27
debian/control vendored

@ -1,11 +1,11 @@
Source: openerp
Section: net
Priority: optional
Maintainer: OpenERP SA <al@openerp.com>
Build-Depends: debhelper (>= 7.0.50~), python, rsync
Standards-Version: 3.9.1
Homepage: http://www.openerp.com/
Vcs-Bzr: https://launchpad.net/openobject
Maintainer: Odoo SA <sle@odoo.com>
Build-Depends: debhelper (>= 9.0), python, rsync
Standards-Version: 3.9.5.0
Homepage: http://www.odoo.com/
Vcs-Git: https://github.com/odoo/odoo
Package: openerp
Section: net
@ -13,12 +13,11 @@ Architecture: all
Depends:
${misc:Depends},
adduser,
python,
postgresql-client,
python,
python-dateutil,
python-docutils,
python-feedparser,
python-gdata,
python-imaging,
python-jinja2,
python-ldap,
@ -39,20 +38,22 @@ Depends:
python-unittest2,
python-vatnumber,
python-vobject,
python-webdav,
python-werkzeug,
python-xlwt,
python-yaml,
python-zsi
Conflicts: tinyerp-server, openerp-server, openerp-web
Replaces: tinyerp-server, openerp-server, openerp-web
Recommends:
graphviz, ghostscript, postgresql, python-matplotlib, poppler-utils
antiword,
graphviz,
ghostscript,
postgresql,
python-gevent,
poppler-utils
Description: OpenERP Enterprise Resource Management
OpenERP, previously known as TinyERP, is a complete ERP and CRM. The main
features are accounting (analytic and financial), stock management, sales and
purchases management, tasks automation, marketing campaigns, help desk, POS,
etc. Technical features include a distributed server, flexible workflows, an
object database, a dynamic GUI, customizable reports, and NET-RPC and XML-RPC
interfaces.
object database, a dynamic GUI, customizable reports, and an XML-RPC
interface.

210
debian/copyright vendored

@ -1,207 +1,21 @@
Upstream-Contact: OpenERP <info@openerp.com>
Upstream-Homepage: http://www.openerp.com/
Maintainer-Contact: Debian OpenERP Maintainers <gnunet@lists.debian-maintainers.org>
Maintainer-Homepage: http://open-object.debian-maintainers.org/
Upstream-Contact: Odoo <info@odoo.com>
Upstream-Homepage: http://www.odoo.com/
Maintainer-Contact: Debian Odoo Maintainers <gnunet@lists.debian-maintainers.org>
Maintainer-Homepage: http://www.odoo.com/
Files: *
Copyright: (C) 2004-2011 OpenERP SA. (www.openerp.com)
License: GPL-3+
Copyright: (C) 2004-2014 OpenERP SA. (www.openerp.com)
License: AGPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-3 file.
Files:
bin/addons/account/report/general_ledger.py
bin/addons/account/report/general_ledger_landscape.py
bin/addons/account/wizard/wizard_statement_from_invoice.py
Copyright: (C) 2005-2008 CamptoCamp
License: GPL-2+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-2 file.
Files: bin/addons/auction/barcode/*
Copyright: (C) 2000 Tyler C. Sarna <tsarna@sarna.org>
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by Tyler C. Sarna.
4. Neither the name of the author nor the names of contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Files:
bin/addons/base_report_designer/wizard/tiny_sxw2rml/normalized_oo2rml.xsl
bin/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py
Copyright: (C) 2005 Martin Simon
License: LGPL-2.1
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU Library General Public License
can be found in /usr/share/common-licenses/LGPL-2.1 file.
Files: bin/addons/document/ftpserver/*
Copyright:
(C) 2007 Giampaolo Rodola <g.rodola@gmail.com>
(C) 2008 Fabien Pinckaers <fp@tinyerp.com>
License: MIT
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
Giampaolo Rodola' not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
.
Giampaolo Rodola' DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
NO EVENT Giampaolo Rodola' BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Files: bin/addons/hr_holidays/*
Copyright:
(C) 2004-2008 Tiny.be <info@tiny.be>
(C) 2005-2006 Axelor SARL. <http://www.axelor.com/>
License: GPL-2+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-2 file.
Files: bin/addons/l10n_uk/*
Copyright:
(C) 2004-2008 Tiny.be <info@tiny.be>
(C) 2004-2008 Seath Solutions Ltd.
License: GPL-2+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-2 file.
Files: bin/tools/threadinglocal.py
Copyright: (C) 2004-2005 CherryPy Team <team@cherrypy.org>
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the CherryPy Team nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Files: bin/tools/decimal.py
Copyright: (C) 2004 Python Software Foundation.
License: other
This file is distributed under the Python Software License
(http://www.python.org/2.3/license.html).
.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

@ -12,7 +12,7 @@
# Description: Open ERP is a complete ERP and CRM software.
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DAEMON=/usr/bin/openerp-server
NAME=openerp-server
DESC=openerp-server

2
debian/install vendored

@ -0,0 +1,2 @@
debian/openerp-server.conf /etc/openerp
README.md /usr/share/doc/openerp

@ -5,3 +5,4 @@ db_host = False
db_port = False
db_user = openerp
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons

@ -1,2 +0,0 @@
install/openerp-server.conf /etc/openerp
README /usr/share/doc/openerp

@ -1,30 +0,0 @@
#!/bin/sh
set -e
case "${1}" in
configure)
if ! getent passwd | grep -q "^openerp:"; then
adduser --system --no-create-home --quiet --gecos 'OpenERP' --group openerp
fi
# Register "openerp" as a postgres superuser
su - postgres -c "createuser -s openerp" 2> /dev/null || true
chown openerp:openerp /etc/openerp/openerp-server.conf
chmod 0640 /etc/openerp/openerp-server.conf
# Creating log file
mkdir -p /var/log/openerp/
chown openerp:openerp /var/log/openerp
chmod 0750 /var/log/openerp
# Creating local storage directory
mkdir -p /var/lib/openerp/filestore
chown openerp:openerp -R /var/lib/openerp
# update-python-modules NOW otherwise invoke-rc.d openerp start will fail
update-python-modules -p openerp.public
;;
*)
;;
esac
#DEBHELPER#
exit 0

@ -1,22 +0,0 @@
#!/bin/sh
set -e
case "${1}" in
remove)
deluser --quiet --system "openerp" || true
delgroup --quiet --system --only-if-empty "openerp" || true
;;
purge)
rm -rf /var/lib/openerp-server
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
esac
#DEBHELPER#
exit 0

36
debian/postinst vendored

@ -0,0 +1,36 @@
#!/bin/sh
set -e
ODOO_CONFIGURATION_FILE=/etc/openerp/openerp-server.conf
ODOO_GROUP="openerp"
ODOO_DATA_DIR=/var/lib/openerp
ODOO_LOG_DIR=/var/log/openerp
ODOO_USER="openerp"
case "${1}" in
configure)
if ! getent passwd | grep -q "^openerp:"; then
adduser --system --home $ODOO_DATA_DIR --quiet --group $ODOO_USER
fi
# Register "openerp" as a postgres superuser
su - postgres -c "createuser -s openerp" 2> /dev/null || true
# Configuration file
chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE
chmod 0640 $ODOO_CONFIGURATION_FILE
# Log
mkdir -p $ODOO_LOG_DIR
chown $ODOO_USER:$ODOO_GROUP $ODOO_LOG_DIR
chmod 0750 $ODOO_LOG_DIR
# Data dir
chown $ODOO_USER:$ODOO_GROUP $ODOO_DATA_DIR
# update-python-modules NOW otherwise invoke-rc.d openerp start will fail
update-python-modules
;;
*)
;;
esac
#DEBHELPER#
exit 0

31
debian/postrm vendored

@ -0,0 +1,31 @@
#!/bin/sh
set -e
ODOO_LIB_DIR=/var/lib/openerp
ODOO_USER="openerp"
ODOO_GROUP="openerp"
case "${1}" in
remove)
deluser --quiet --system $ODOO_USER || true
delgroup --quiet --system --only-if-empty $ODOO_GROUP || true
if [ -d "$ODOO_LIB_DIR" ]; then
rm -rf $ODOO_LIB_DIR
fi
;;
purge)
if [ -d "$ODOO_LIB_DIR" ]; then
rm -rf $ODOO_LIB_DIR
fi
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
esac
#DEBHELPER#
exit 0

15
debian/rules vendored

@ -2,16 +2,7 @@
# vim:noet:
%:
dh ${@}
override_dh_pysupport:
echo "rsync"
sh -c "[ -d debian/openerp/usr/lib/python2.6 ] && rsync -av openerp/ debian/openerp/usr/lib/python2.6/dist-packages/openerp/" || true
sh -c "[ -d debian/openerp/usr/lib/python2.7 ] && rsync -av openerp/ debian/openerp/usr/lib/python2.7/dist-packages/openerp/" || true
rm -Rf debian/openerp/usr/openerp debian/openerp/usr/lib/python2.6/dist-packages/tests debian/openerp/usr/lib/python2.7/dist-packages/tests
dh_pysupport
rm -Rf debian/openerp/usr/lib
override_dh_installinit:
dh_installinit --update-rcd-params='defaults 21'
dh ${@} -Spython_distutils
override_dh_installchangelogs:
dh_installchangelogs -X./history

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

@ -1,229 +0,0 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
.TH OPENERP "1" "December 2010" "OpenERP Server 6.0.0-rc1" "User Commands"
.SH NAME
OpenERP \- manual page for OpenERP Server 6.0.0-rc1
.SH SYNOPSIS
.B openerp-server.py
[\fIoptions\fR]
.SH OPTIONS
.TP
\fB\-\-version\fR
show program's version number and exit
.TP
\fB\-h\fR, \fB\-\-help\fR
show this help message and exit
.TP
\fB\-c\fR CONFIG, \fB\-\-config\fR=\fICONFIG\fR
specify alternate config file
.TP
\fB\-s\fR, \fB\-\-save\fR
save configuration to ~/.openerp_serverrc
.TP
\fB\-\-pidfile\fR=\fIPIDFILE\fR
file where the server pid will be stored
.TP
\fB\-i\fR INIT, \fB\-\-init\fR=\fIINIT\fR
init a module (use "all" for all modules)
.TP
\fB\-\-without\-demo\fR=\fIWITHOUT_DEMO\fR
load demo data for a module (use "all" for all
modules)
.TP
\fB\-u\fR UPDATE, \fB\-\-update\fR=\fIUPDATE\fR
update a module (use "all" for all modules)
.TP
\fB\-\-cache\-timeout\fR=\fICACHE_TIMEOUT\fR
set the timeout for the cache system
.TP
\fB\-t\fR TIMEZONE, \fB\-\-timezone\fR=\fITIMEZONE\fR
specify reference timezone for the server (e.g.
Europe/Brussels
.TP
\fB\-\-stop\-after\-init\fR
stop the server after it initializes
.TP
\fB\-\-debug\fR
enable debug mode
.TP
\fB\-\-assert\-exit\-level\fR=\fIASSERT_EXIT_LEVEL\fR
specify the level at which a failed assertion will
stop the server. Accepted values: ['info',
\&'debug_rpc', 'warn', 'test', 'critical', 'debug_sql',
\&'error', 'debug', 'debug_rpc_answer', 'notset']
.IP
XML\-RPC Configuration:
.TP
\fB\-\-xmlrpc\-interface\fR=\fIXMLRPC_INTERFACE\fR
specify the TCP IP address for the XML\-RPC protocol
.TP
\fB\-\-xmlrpc\-port\fR=\fIXMLRPC_PORT\fR
specify the TCP port for the XML\-RPC protocol
.TP
\fB\-\-no\-xmlrpc\fR
disable the XML\-RPC protocol
.IP
XML\-RPC Secure Configuration:
.TP
\fB\-\-xmlrpcs\-interface\fR=\fIXMLRPCS_INTERFACE\fR
specify the TCP IP address for the XML\-RPC Secure
protocol
.TP
\fB\-\-xmlrpcs\-port\fR=\fIXMLRPCS_PORT\fR
specify the TCP port for the XML\-RPC Secure protocol
.TP
\fB\-\-no\-xmlrpcs\fR
disable the XML\-RPC Secure protocol
.TP
\fB\-\-cert\-file\fR=\fISECURE_CERT_FILE\fR
specify the certificate file for the SSL connection
.TP
\fB\-\-pkey\-file\fR=\fISECURE_PKEY_FILE\fR
specify the private key file for the SSL connection
.IP
NET\-RPC Configuration:
.TP
\fB\-\-netrpc\-interface\fR=\fINETRPC_INTERFACE\fR
specify the TCP IP address for the NETRPC protocol
.TP
\fB\-\-netrpc\-port\fR=\fINETRPC_PORT\fR
specify the TCP port for the NETRPC protocol
.TP
\fB\-\-no\-netrpc\fR
disable the NETRPC protocol
.IP
Static HTTP service:
.TP
\fB\-\-static\-http\-enable\fR
enable static HTTP service for serving plain HTML
files
.TP
\fB\-\-static\-http\-document\-root\fR=\fISTATIC_HTTP_DOCUMENT_ROOT\fR
specify the directory containing your static HTML
files (e.g '/var/www/')
.TP
\fB\-\-static\-http\-url\-prefix\fR=\fISTATIC_HTTP_URL_PREFIX\fR
specify the URL root prefix where you want web
browsers to access your static HTML files (e.g '/')
.IP
Testing Configuration:
.TP
\fB\-\-test\-file\fR=\fITEST_FILE\fR
Launch a YML test file.
.TP
\fB\-\-test\-report\-directory\fR=\fITEST_REPORT_DIRECTORY\fR
If set, will save sample of all reports in this
directory.
.TP
\fB\-\-test\-disable\fR
Disable loading test files.
.TP
\fB\-\-test\-commit\fR
Commit database changes performed by tests.
.IP
Logging Configuration:
.TP
\fB\-\-logfile\fR=\fILOGFILE\fR
file where the server log will be stored
.TP
\fB\-\-no\-logrotate\fR
do not rotate the logfile
.TP
\fB\-\-syslog\fR
Send the log to the syslog server
.TP
\fB\-\-log\-level\fR=\fILOG_LEVEL\fR
specify the level of the logging. Accepted values:
['info', 'debug_rpc', 'warn', 'test', 'critical',
\&'debug_sql', 'error', 'debug', 'debug_rpc_answer',
\&'notset']
.IP
SMTP Configuration:
.TP
\fB\-\-email\-from\fR=\fIEMAIL_FROM\fR
specify the SMTP email address for sending email
.TP
\fB\-\-smtp\fR=\fISMTP_SERVER\fR
specify the SMTP server for sending email
.TP
\fB\-\-smtp\-port\fR=\fISMTP_PORT\fR
specify the SMTP port
.TP
\fB\-\-smtp\-ssl\fR
specify the SMTP server support SSL or not
.TP
\fB\-\-smtp\-user\fR=\fISMTP_USER\fR
specify the SMTP username for sending email
.TP
\fB\-\-smtp\-password\fR=\fISMTP_PASSWORD\fR
specify the SMTP password for sending email
.IP
Database related options:
.TP
\fB\-d\fR DB_NAME, \fB\-\-database\fR=\fIDB_NAME\fR
specify the database name
.TP
\fB\-r\fR DB_USER, \fB\-\-db_user\fR=\fIDB_USER\fR
specify the database user name
.TP
\fB\-w\fR DB_PASSWORD, \fB\-\-db_password\fR=\fIDB_PASSWORD\fR
specify the database password
.TP
\fB\-\-pg_path\fR=\fIPG_PATH\fR
specify the pg executable path
.TP
\fB\-\-db_host\fR=\fIDB_HOST\fR
specify the database host
.TP
\fB\-\-db_port\fR=\fIDB_PORT\fR
specify the database port
.TP
\fB\-\-db_maxconn\fR=\fIDB_MAXCONN\fR
specify the the maximum number of physical connections
to posgresql
.TP
\fB\-P\fR IMPORT_PARTIAL, \fB\-\-import\-partial\fR=\fIIMPORT_PARTIAL\fR
Use this for big data importation, if it crashes you
will be able to continue at the current state. Provide
a filename to store intermediate importation states.
.IP
Internationalisation options:
.IP
Use these options to translate OpenERP to another language.See i18n
section of the user manual. Option '\-d' is mandatory.Option '\-l' is
mandatory in case of importation
.TP
\fB\-l\fR LANGUAGE, \fB\-\-language\fR=\fILANGUAGE\fR
specify the language of the translation file. Use it
with \fB\-\-i18n\-export\fR or \fB\-\-i18n\-import\fR
.TP
\fB\-\-i18n\-export\fR=\fITRANSLATE_OUT\fR
export all sentences to be translated to a CSV file, a
PO file or a TGZ archive and exit
.TP
\fB\-\-i18n\-import\fR=\fITRANSLATE_IN\fR
import a CSV or a PO file with translations and exit.
The '\-l' option is required.
.TP
\fB\-\-modules\fR=\fITRANSLATE_MODULES\fR
specify modules to export. Use in combination with
\fB\-\-i18n\-export\fR
.TP
\fB\-\-addons\-path\fR=\fIADDONS_PATH\fR
specify an alternative addons path.
.IP
Security\-related options:
.TP
\fB\-\-no\-database\-list\fR
disable the ability to return the list of databases
.SH "SEE ALSO"
The full documentation for
.B OpenERP
is maintained as a Texinfo manual. If the
.B info
and
.B OpenERP
programs are properly installed at your site, the command
.IP
.B info OpenERP
.PP
should give you access to the complete manual.

@ -1,147 +0,0 @@
#!/bin/bash
# openerp-server This shell script takes care of starting and stopping
# OpenERP server
#
# chkconfig: 345 95 05
# description: OpenERP server
#
# pidfile: /var/run/openerp-server.pid
# config: /etc/openerp-server.conf
### BEGIN INIT INFO
# Provides: openerp-server
# Required-Start: postgresql
# Required-Stop: postgresql
# Should-Start: $network harddrake
# Default-Start: 345
# Short-Description: Launches the OpenERP server.
# Description: This startup script launches the OpenERP server.
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
PIDFILE=/var/run/openerp/openerp-server.pid
LOCKFILE=/var/lock/subsys/openerp-server
LOGFILE=/var/log/openerp/openerp-server.log
OPTS="--pidfile=$PIDFILE --logfile=$LOGFILE"
prog="openerp-server"
desc="OpenERP Server Daemon"
# check if the openerp-server conf file is present, then use it
if [ -f /etc/openerp-server.conf ]; then
OPTS="$OPTS -c /etc/openerp-server.conf"
fi
# Source function library
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
# check the existence of the openerp-server script
[ -z "/usr/bin/openerp-server" ] && exit 0
RETVAL=0
start() {
if [ -d /etc/openerp/start.d ] ; then
echo -n $"Preparing $desc: "
run-parts --exit-on-error /etc/openerp/start.d
RETVAL=$?
echo
[ $RETVAL -ne 0 ] && return $RETVAL
fi
echo -n $"Starting $desc ($prog): "
daemon --user openerp --check openerp-server \
"/usr/bin/setsid /usr/bin/openerp-server \
-c /etc/openerp-server.conf \
--pidfile=$PIDFILE \
--logfile=$LOGFILE &"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LOCKFILE
return $RETVAL
}
stop() {
echo -n $"Stopping $desc ($prog): "
kill -TERM `cat $PIDFILE` > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
rm -f $LOCKFILE
echo_success
echo
else
echo_failure
echo
fi
if [ -d /etc/openerp/stop.d ] ; then
echo -n $"Clearing $desc: "
run-parts /etc/openerp/stop.d
echo
fi
return $RETVAL
}
restart() {
stop
start
}
condrestart() {
[ -e $LOCKFILE ] && restart || :
}
status() {
if [ -f $PIDFILE ] ; then
checkpid `cat $PIDFILE`
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
echo $"$prog is running..."
else
echo $"$prog is stopped"
fi
else
echo $"$prog is stopped"
fi
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
condrestart)
condrestart
;;
status)
status
;;
probe)
exit 0
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
exit 1
esac

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

@ -1,113 +0,0 @@
.TH openerp_serverrc 5
.SH NAME
openerp_serverrc \- configuration file for OpenERP
.SH SYNOPSIS
[options]
.br
$option\ =\ " someValue "
.br
...
.SH DESCRIPTION
A setup file consists of a section, lead by a "[options]" header,
.br
and followed by "option_name = value" entries, with continuations and such in
.br
the style of RFC 822.
.SH OPTIONS
.TP
.IR verbose
Enable the debugging mode
.br
(default False)
.TP
.IR pidfile
The file where the server pid will be stored
.br
(default False)
.TP
.IR logfile
The file where the server log will be stored
.br
(default False)
.TP
.IR interface
The IP address on which the server will bind.
.br
If empty, it will bind on all interfaces (default empty)
.TP
.IR port
The TCP port on which the server will listen.
.br
(default 8069)
.TP
.IR debug_mode
Enable debug mode
.br
(default False)
.TP
.IR secure
Launch server over https instead of http.
.br
(default False)
.TP
.IR smtp_server
Specify the SMTP server for sending email.
.br
(default localhost)
.TP
.IR smtp_user
Specify the SMTP user for sending email.
.br
(default False)
.TP
.IR smtp_password
Specify the SMTP password for sending email.
.br
(default False)
.TP
.IR db_name
Specify the database name.
.TP
.IR db_user
Specify the database user name.
.br
(default None)
.TP
.IR db_password
Specify the database password for db_user.
.br
(default None)
.TP
.IR pg_path
Specify the PostgreSQL executable path.
.br
(default None)
.TP
.IR db_host
Specify the database host.
.br
(default localhost)
.TP
.IR db_port
Specify the database port.
.br
(default None)
.TP
.IR price_accuracy
Specify the price accuracy.
.br
.SH AUTHORS
OpenERP is a product of \fBTiny.be\fR (\fIhttp://www.tiny.be\fR)
.SH SEE ALSO
openerp-server(1)
.br
\fIhttp://www.openerp.com\fR : Open ERP official website
.br
\fIhttp://doc.openerp.com\fR : Open ERP documentation

@ -1,89 +0,0 @@
# X.509 Certificate options
#
# DN options
# The organization of the subject.
organization = "Some organization."
# The organizational unit of the subject.
unit = "ERP dept."
# The locality of the subject.
# locality =
# The state of the certificate owner.
state = "State"
# The country of the subject. Two letter code.
country = BE
# The common name of the certificate owner.
cn = "Some company"
# A user id of the certificate owner.
#uid = "clauper"
# If the supported DN OIDs are not adequate you can set
# any OID here.
# For example set the X.520 Title and the X.520 Pseudonym
# by using OID and string pairs.
#dn_oid = "2.5.4.12" "Dr." "2.5.4.65" "jackal"
# This is deprecated and should not be used in new
# certificates.
# pkcs9_email = "none@none.org"
# The serial number of the certificate
serial = 001
# In how many days, counting from today, this certificate will expire.
expiration_days = 700
# X.509 v3 extensions
# A dnsname in case of a WWW server.
#dns_name = "www.none.org"
#dns_name = "www.morethanone.org"
# An IP address in case of a server.
#ip_address = "192.168.1.1"
# An email in case of a person
email = "none@none.org"
# An URL that has CRLs (certificate revocation lists)
# available. Needed in CA certificates.
#crl_dist_points = "http://www.getcrl.crl/getcrl/"
# Whether this is a CA certificate or not
#ca
# Whether this certificate will be used for a TLS client
#tls_www_client
# Whether this certificate will be used for a TLS server
tls_www_server
# Whether this certificate will be used to sign data (needed
# in TLS DHE ciphersuites).
#signing_key
# Whether this certificate will be used to encrypt data (needed
# in TLS RSA ciphersuites). Note that it is prefered to use different
# keys for encryption and signing.
encryption_key
# Whether this key will be used to sign other certificates.
#cert_signing_key
# Whether this key will be used to sign CRLs.
#crl_signing_key
# Whether this key will be used to sign code.
#code_signing_key
# Whether this key will be used to sign OCSP data.
#ocsp_signing_key
# Whether this key will be used for time stamping.
#time_stamping_key

@ -1,10 +1,40 @@
[general]
[sdist]
formats=gztar
[bdist_rpm]
python = python2.6
install-script = setup/redhat/install.sh
post-install = setup/redhat/postinstall.sh
[bdist]
formats=rpm
requires =
babel
libxslt-python
pychart
pyparsing
python-dateutil
python-docutils
python-feedparser
python-imaging
python-jinja2
python-ldap
python-lxml
python-mako
python-mock
python-openid
python-passlib
python-psutil
python-psycopg2
python-reportlab
python-requests
python-simplejson
python-unittest2
python-vobject
python-werkzeug
python-yaml
pytz
python-vatnumber
pydot
pyPdf
[bdist_rpm]
install_script=setup_rpm.sh
# -------------------------------------------------------------------
# RedHat 7 notes
# -------------------------------------------------------------------
# Most of the OpenERP dependencies are available on the EPEL repository.
# yum install epel-release

@ -1,152 +1,155 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import glob, os, re, setuptools, sys
from os.path import join
import os
import re
from glob import glob
from setuptools import find_packages, setup
from os.path import join, dirname
execfile(join(dirname(__file__), 'openerp', 'release.py')) # Load release variables
lib_name = 'openerp'
def py2exe_datafiles():
data_files = {}
data_files['Microsoft.VC90.CRT'] = glob('C:\Microsoft.VC90.CRT\*.*')
# List all data files
def data():
r = {}
for root, dirnames, filenames in os.walk('openerp'):
for filename in filenames:
if not re.match(r'.*(\.pyc|\.pyo|\~)$', filename):
r.setdefault(root, []).append(os.path.join(root, filename))
if os.name == 'nt':
r["Microsoft.VC90.CRT"] = glob.glob('C:\Microsoft.VC90.CRT\*.*')
import babel
# Add data, but also some .py files py2exe won't include automatically.
# TODO This should probably go under `packages`, instead of `data`,
# but this will work fine (especially since we don't use the ZIP file
# approach).
r["babel/localedata"] = glob.glob(os.path.join(os.path.dirname(babel.__file__), "localedata", '*'))
others = ['global.dat', 'numbers.py', 'support.py']
r["babel"] = map(lambda f: os.path.join(os.path.dirname(babel.__file__), f), others)
others = ['frontend.py', 'mofile.py']
r["babel/messages"] = map(lambda f: os.path.join(os.path.dirname(babel.__file__), "messages", f), others)
data_files.setdefault(root, []).append(join(root, filename))
import pytz
tzdir = os.path.dirname(pytz.__file__)
for root, _, filenames in os.walk(os.path.join(tzdir, "zoneinfo")):
base = os.path.join('pytz', root[len(tzdir) + 1:])
r[base] = [os.path.join(root, f) for f in filenames]
import babel
data_files['babel/localedata'] = glob(join(dirname(babel.__file__), 'localedata', '*'))
others = ['global.dat', 'numbers.py', 'support.py', 'plural.py']
data_files['babel'] = map(lambda f: join(dirname(babel.__file__), f), others)
others = ['frontend.py', 'mofile.py']
data_files['babel/messages'] = map(lambda f: join(dirname(babel.__file__), 'messages', f), others)
import docutils
dudir = os.path.dirname(docutils.__file__)
for root, _, filenames in os.walk(dudir):
base = os.path.join('docutils', root[len(dudir) + 1:])
r[base] = [os.path.join(root, f) for f in filenames if not f.endswith(('.py', '.pyc', '.pyo'))]
import pytz
tzdir = dirname(pytz.__file__)
for root, _, filenames in os.walk(join(tzdir, 'zoneinfo')):
base = join('pytz', root[len(tzdir) + 1:])
data_files[base] = [join(root, f) for f in filenames]
return r.items()
import docutils
dudir = dirname(docutils.__file__)
for root, _, filenames in os.walk(dudir):
base = join('docutils', root[len(dudir) + 1:])
data_files[base] = [join(root, f) for f in filenames if not f.endswith(('.py', '.pyc', '.pyo'))]
def gen_manifest():
file_list="\n".join(data())
open('MANIFEST','w').write(file_list)
return data_files.items()
if os.name == 'nt':
sys.path.append("C:\Microsoft.VC90.CRT")
def py2exe_options():
if os.name == 'nt':
import py2exe
return {
"console" : [ { "script": "openerp-server", "icon_resources": [(1, join("install","openerp-icon.ico"))], }],
'options' : {
"py2exe": {
"skip_archive": 1,
"optimize": 0, # keep the assert running, because the integrated tests rely on them.
"dist_dir": 'dist',
"packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "docutils", "email", "encodings", "imaplib", "jinja2", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "pytz", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber", "vobject", "xml", "xml.dom", "yaml", ],
"excludes" : ["Tkconstants","Tkinter","tcl"],
'console': [
{'script': 'openerp-server', 'icon_resources': [
(1, join('setup', 'win32', 'static', 'pixmaps', 'openerp-icon.ico'))
]},
],
'options': {
'py2exe': {
'skip_archive': 1,
'optimize': 0, # Keep the assert running as the integrated tests rely on them.
'dist_dir': 'dist',
'packages': [
'asynchat', 'asyncore',
'commands',
'dateutil',
'decimal',
'docutils',
'email',
'encodings',
'HTMLParser',
'imaplib',
'jinja2',
'lxml', 'lxml._elementpath', 'lxml.builder', 'lxml.etree', 'lxml.objectify',
'mako',
'markupsafe',
'mock',
'openerp',
'openid',
'PIL',
'poplib',
'psutil',
'pychart',
'pydot',
'pyparsing',
'pytz',
'reportlab',
'select',
'simplejson',
'smtplib',
'uuid',
'vatnumber',
'vobject',
'win32service', 'win32serviceutil',
'xlwt',
'xml', 'xml.dom',
'yaml',
],
'excludes': ['Tkconstants', 'Tkinter', 'tcl'],
}
}
},
'data_files': py2exe_datafiles()
}
else:
return {}
execfile(join(os.path.dirname(__file__), 'openerp', 'release.py'))
# Notes for OpenERP developer on windows:
#
# To setup a windows developer evironement install python2.7 then pip and use
# "pip install <depencey>" for every dependency listed below.
#
# Dependecies that requires DLLs are not installable with pip install, for
# them we added comments with links where you can find the installers.
#
# OpenERP on windows also require the pywin32, the binary can be found at
# http://pywin32.sf.net
#
# Both python2.7 32bits and 64bits are known to work.
setuptools.setup(
name = 'openerp',
version = version,
description = description,
long_description = long_desc,
url = url,
author = author,
author_email = author_email,
classifiers = filter(None, classifiers.split("\n")),
license = license,
scripts = ['openerp-server'],
data_files = data(),
packages = setuptools.find_packages(),
dependency_links = ['http://download.gna.org/pychart/'],
#include_package_data = True,
install_requires = [
'pychart', # not on pypi, use: pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz
'babel',
'docutils',
'feedparser',
'gdata',
'Jinja2',
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'mako',
'mock',
'PIL', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'psutil', # windows binary code.google.com/p/psutil/downloads/list
'psycopg2 >= 2.2',
'pydot',
'python-dateutil < 2',
'python-ldap', # optional
'python-openid',
'pytz',
'pywebdav < 0.9.8',
'pyyaml',
'reportlab', # windows binary pypi.python.org/pypi/reportlab
'simplejson',
'unittest2',
'vatnumber',
'vobject',
'werkzeug',
'xlwt',
],
extras_require = {
'SSL' : ['pyopenssl'],
},
tests_require = ['unittest2'],
**py2exe_options()
setup(
name='openerp',
version=version,
description=description,
long_description=long_desc,
url=url,
author=author,
author_email=author_email,
classifiers=filter(None, classifiers.split('\n')),
license=license,
scripts=['openerp-server'],
packages=find_packages(),
package_dir={'%s' % lib_name: 'openerp'},
include_package_data=True,
dependency_links=['http://download.gna.org/pychart/'],
install_requires=[
'babel',
'docutils',
'feedparser',
'gdata',
'Jinja2',
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'mako',
'mock',
'PIL', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'psutil', # windows binary code.google.com/p/psutil/downloads/list
'psycopg2 >= 2.2',
'pychart', # not on pypi, use: pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz
'pydot',
'python-dateutil < 2',
'python-ldap', # optional
'python-openid',
'pytz',
'pywebdav < 0.9.8',
'pyyaml',
'reportlab', # windows binary pypi.python.org/pypi/reportlab
'simplejson',
'unittest2',
'vatnumber',
'vobject',
'werkzeug',
'xlwt',
],
extras_require={
'SSL': ['pyopenssl'],
},
tests_require=[
'unittest2',
],
**py2exe_options()
)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

@ -0,0 +1,25 @@
# Please note that this Dockerfile is used for testing nightly builds and should
# not be used to deploy Odoo
FROM centos:centos6
MAINTAINER Odoo S.A. <info@odoo.com>
RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \
yum -y -d 0 -e 0 update -y && yum -y -d 0 -e 0 upgrade -y && \
yum -y -d 0 -e 0 install \
python-pip \
gcc \
python-devel \
postgresql \
postgresql-server \
postgresql-libs \
postgresql-contrib \
postgresql-devel && \
yum clean all && \
pip install xlwt http://download.gna.org/pychart/PyChart-1.39.tar.gz
# Manual start of postgres
RUN mkdir -p /var/lib/postgres/data
RUN chown -R postgres:postgres /var/lib/postgres/data
RUN chmod 0700 /var/lib/postgres/data
RUN su postgres -c "initdb -D /var/lib/postgres/data -E UTF-8"
RUN cp /usr/share/pgsql/postgresql.conf.sample /var/lib/postgres/data/postgresql.conf

@ -0,0 +1,108 @@
# Please note that this Dockerfile is used for testing nightly builds and should
# not be used to deploy Odoo
FROM debian:stable
MAINTAINER Odoo S.A. <info@odoo.com>
# Change policy-rc.d so that services start automatically once installed
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
RUN apt-get update && \
apt-get install -y locales && \
rm -rf /var/lib/apt/lists/*
# Reconfigure locales such that postgresql uses UTF-8 encoding
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt-get update -qq && \
apt-get upgrade -qq -y && \
apt-get install \
postgresql \
postgresql-server-dev-all \
postgresql-client \
adduser \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libsasl2-dev \
libssl-dev \
libjpeg-dev \
python-dev \
python-pip \
build-essential \
python \
python-dateutil \
python-decorator \
python-docutils \
python-feedparser \
python-imaging \
python-jinja2 \
python-ldap \
python-libxslt1 \
python-lxml \
python-mako \
python-mock \
python-openid \
python-passlib \
python-psutil \
python-psycopg2 \
python-pybabel \
python-pychart \
python-pydot \
python-pyparsing \
python-pypdf \
python-reportlab \
python-requests \
python-simplejson \
python-tz \
python-unittest2 \
python-vatnumber \
python-vobject \
python-werkzeug \
python-xlwt \
python-yaml -y && \
rm -rf /var/lib/apt/lists/*
RUN pip install Babel==1.3 \
Jinja2==2.7.3 \
Mako==1.0.0 \
MarkupSafe==0.23 \
Pillow==2.5.1 \
http://download.gna.org/pychart/PyChart-1.39.tar.gz \
PyYAML==3.11 \
Werkzeug==0.9.6 \
argparse==1.2.1 \
decorator==3.4.0 \
docutils==0.12 \
feedparser==5.1.3 \
gdata==2.0.18 \
gevent==1.0.1 \
greenlet==0.4.2 \
jcconv==0.2.3 \
lxml==3.3.5 \
mock==1.0.1 \
passlib==1.6.2 \
psutil==2.1.1 \
psycogreen==1.0 \
psycopg2==2.5.3 \
pyPdf==1.13 \
pydot==1.0.2 \
pyparsing==1.5.7 \
pyserial==2.7 \
python-dateutil==1.5 \
python-ldap==2.4.15 \
python-openid==2.2.5 \
pytz==2014.4 \
pyusb==1.0.0b1 \
qrcode==5.0.1 \
reportlab==3.1.8 \
requests==2.3.0 \
simplejson==3.5.3 \
six==1.7.3 \
unittest2==0.5.1 \
vatnumber==1.2 \
vobject==0.6.6 \
wsgiref==0.1.2 \
xlwt==0.7.5

@ -0,0 +1,502 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,