[FIX] ir.model: fix incorrect translate call: _()

bzr revid: odo@openerp.com-20120208004124-2nhcwrcc7js6q04s
This commit is contained in:
Olivier Dony 2012-02-08 01:41:24 +01:00
parent 8289a2869e
commit 3e74579982
1 changed files with 3 additions and 3 deletions

View File

@ -308,9 +308,9 @@ class ir_model_fields(osv.osv):
if 'serialization_field_id' in vals or 'name' in vals:
for field in self.browse(cr, user, ids, context=context):
if 'serialization_field_id' in vals and field.serialization_field_id.id != vals['serialization_field_id']:
raise except_orm(_('Error!'), _('Changing the storing system for the field "%s" is not allowed.'%field.name))
raise except_orm(_('Error!'), _('Changing the storing system for field "%s" is not allowed.')%field.name)
if field.serialization_field_id and (field.name != vals['name']):
raise except_orm(_('Error!'), _('Renaming the sparse field "%s" is not allowed'%field.name))
raise except_orm(_('Error!'), _('Renaming sparse field "%s" is not allowed')%field.name)
column_rename = None # if set, *one* column can be renamed here
obj = None