From c0999456113ffc1b6d5522bf9327fd938b709673 Mon Sep 17 00:00:00 2001 From: Anu Patel Date: Tue, 7 May 2013 19:06:37 +0530 Subject: [PATCH] [IMP] mass_editing: Added _('') for constraint message. --- mass_editing/mass_editing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mass_editing/mass_editing.py b/mass_editing/mass_editing.py index 5fe788c70..8db6c4c70 100644 --- a/mass_editing/mass_editing.py +++ b/mass_editing/mass_editing.py @@ -54,7 +54,7 @@ class mass_object(orm.Model): } _sql_constraints = [ - ('name_uniq', 'unique (name)', 'Name must be unique!'), + ('name_uniq', 'unique (name)', _('Name must be unique!')), ] def onchange_model(self, cr, uid, ids, model_id, context=None): @@ -102,7 +102,7 @@ class mass_object(orm.Model): }, context) return True - def unlink_action(self, cr, uid, ids, context=None): + def unlink_action(self, cr, uid, ids, context=None): for template in self.browse(cr, uid, ids, context=context): try: if template.ref_ir_act_window: