[MERGE] sync w/ trunk
bzr revid: odo@openerp.com-20111118092824-oezev5012jljmgg2
This commit is contained in:
@@ -150,9 +150,9 @@ class ir_sequence(openerp.osv.osv.osv):
|
||||
|
||||
for row in rows:
|
||||
# 4 cases: we test the previous impl. against the new one.
|
||||
i = values.get('number_increment', row['number_increment'])
|
||||
n = values.get('number_next', row['number_next'])
|
||||
if row['implementation'] == 'standard':
|
||||
i = values.get('number_increment', row['number_increment'])
|
||||
n = values.get('number_next', row['number_next'])
|
||||
if new_implementation in ('standard', None):
|
||||
self._alter_sequence(cr, row['id'], i, n)
|
||||
else:
|
||||
|
||||
@@ -71,7 +71,7 @@ class res_config_configurable(osv.osv_memory):
|
||||
res['nodestroy'] = False
|
||||
return res
|
||||
#if there is no next action and if html is in the context: reload instead of closing
|
||||
if 'html' in context:
|
||||
if context and 'html' in context:
|
||||
return {'type' : 'ir.actions.reload'}
|
||||
return {'type' : 'ir.actions.act_window_close'}
|
||||
|
||||
|
||||
@@ -302,8 +302,9 @@ class YamlInterpreter(object):
|
||||
|
||||
def create_osv_memory_record(self, record, fields):
|
||||
model = self.get_model(record.model)
|
||||
record_dict = self._create_record(model, fields, False)
|
||||
id_new=model.create(self.cr, self.uid, record_dict, context=self.context)
|
||||
context = self.get_context(record, self.eval_context)
|
||||
record_dict = self._create_record(model, fields)
|
||||
id_new = model.create(self.cr, self.uid, record_dict, context=context)
|
||||
self.id_map[record.id] = int(id_new)
|
||||
return record_dict
|
||||
|
||||
|
||||
Reference in New Issue
Block a user