Skip to content

Commit

Permalink
Merge remote-tracking branch 'odoo/7.0' into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA git bot authored and OCA git bot committed Jan 6, 2015
2 parents 25ac753 + 9191115 commit 90a9bde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/web/static/src/js/view_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
r = record;
_.each(self.editor.form.fields, function(field){
field._inhibit_on_change_flag = true;
field.set_value(r.attributes[field.name]);
field.internal_set_value(r.attributes[field.name]);
field._inhibit_on_change_flag = false;
});
return _.every(self.editor.form.fields, function(field){
Expand Down
4 changes: 1 addition & 3 deletions openerp/addons/base/ir/ir_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
##############################################################################

import logging
import unicodedata

from openerp import tools
import openerp.modules
Expand Down Expand Up @@ -339,8 +338,7 @@ def _get_source(self, cr, uid, name, types, lang, source=None):
trad = res and res[0] or u''
if source and not trad:
return tools.ustr(source)
# Remove control characters
return filter(lambda c: unicodedata.category(c) != 'Cc', tools.ustr(trad))
return trad

def create(self, cr, uid, vals, context=None):
if context is None:
Expand Down
2 changes: 1 addition & 1 deletion openerp/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __init__(self, fname=None):
levels = ['info', 'debug_rpc', 'warn', 'test', 'critical',
'debug_sql', 'error', 'debug', 'debug_rpc_answer', 'notset']
group.add_option('--log-level', dest='log_level', type='choice', choices=levels,
my_default='info', help='specify the level of the logging. Accepted values: ' + str(levels) + ' (deprecated option).')
my_default='info', help='specify the level of the logging. Accepted values: ' + str(levels))

parser.add_option_group(group)

Expand Down

0 comments on commit 90a9bde

Please sign in to comment.