[MERGE] forward port branch saas-6 up to 3c3ce75

This commit is contained in:
Christophe Simonis
2016-10-27 14:42:57 +02:00
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ var ViewEditor = Widget.extend({
var args = {
key: $(document.documentElement).data('view-xmlid'),
full: true,
bundles: !!$('script[src*=".assets_common"]').length
bundles: this.$('.js_include_bundles')[0].checked
};
return ajax
.jsonRpc('/website/customize_template_get', 'call', args)
+1 -1
View File
@@ -17,6 +17,7 @@ Depends:
node-less,
postgresql-client,
python,
python-babel,
python-dateutil,
python-decorator,
python-docutils,
@@ -32,7 +33,6 @@ Depends:
python-passlib,
python-psutil,
python-psycopg2,
python-pybabel,
python-pychart,
python-pydot,
python-pyparsing,
+14 -6
View File
@@ -87,7 +87,7 @@ class configmanager(object):
self.config_file = fname
self._LOGLEVELS = dict([
(getattr(loglevels, 'LOG_%s' % x), getattr(logging, x))
(getattr(loglevels, 'LOG_%s' % x), getattr(logging, x))
for x in ('CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG', 'NOTSET')
])
@@ -111,7 +111,7 @@ class configmanager(object):
group.add_option("--addons-path", dest="addons_path",
help="specify additional addons paths (separated by commas).",
action="callback", callback=self._check_addons_path, nargs=1, type="string")
group.add_option("--load", dest="server_wide_modules", help="Comma-separated list of server-wide modules default=web")
group.add_option("--load", dest="server_wide_modules", help="Comma-separated list of server-wide modules. Default is 'web,web_kanban'")
group.add_option("-D", "--data-dir", dest="data_dir", my_default=_get_default_datadir(),
help="Directory where to store Odoo data")
@@ -390,6 +390,7 @@ class configmanager(object):
'test_file', 'test_enable', 'test_commit', 'test_report_directory',
'osv_memory_count_limit', 'osv_memory_age_limit', 'max_cron_threads', 'unaccent',
'data_dir',
'server_wide_modules',
]
posix_keys = [
@@ -440,14 +441,21 @@ class configmanager(object):
if len(self.options['language']) > 5:
raise Exception('ERROR: The Lang name must take max 5 chars, Eg: -lfr_BE')
# server_wide_modules defaults to web,web_kanban if empty or unset
server_wide_modules = self.options['server_wide_modules'] = (
self.options['server_wide_modules']
if self.options['server_wide_modules']
else 'web,web_kanban'
)
if opt.save:
self.save()
openerp.conf.addons_paths = self.options['addons_path'].split(',')
if opt.server_wide_modules:
openerp.conf.server_wide_modules = map(lambda m: m.strip(), opt.server_wide_modules.split(','))
else:
openerp.conf.server_wide_modules = ['web','web_kanban']
openerp.conf.server_wide_modules = [
m.strip() for m in server_wide_modules.split(',')
]
def _is_addons_path(self, path):
for f in os.listdir(path):
+1 -1
View File
@@ -21,6 +21,7 @@ RUN apt-get update -qq && \
postgresql \
postgresql-client \
python \
python-babel \
python-dateutil \
python-decorator \
python-docutils \
@@ -36,7 +37,6 @@ RUN apt-get update -qq && \
python-passlib \
python-psutil \
python-psycopg2 \
python-pybabel \
python-pychart \
python-pydot \
python-pyparsing \