[IMP] Remove space before Exclamation marks [!] in Warning
bzr revid: ggh@tinyerp.com-20130429072938-knas9ymmny5o2z0v
This commit is contained in:
parent
46b06bedf7
commit
dd7614e716
|
@ -657,7 +657,7 @@ class actions_server(osv.osv):
|
|||
|
||||
if action.state=='client_action':
|
||||
if not action.action_id:
|
||||
raise osv.except_osv(_('Error'), _("Please specify an action to launch !"))
|
||||
raise osv.except_osv(_('Error'), _("Please specify an action to launch!"))
|
||||
return self.pool[action.action_id.type].read(cr, uid, action.action_id.id, context=context)
|
||||
|
||||
if action.state=='code':
|
||||
|
|
|
@ -411,8 +411,8 @@ class ir_values(osv.osv):
|
|||
(tuple(groups), uid))
|
||||
if not cr.fetchone():
|
||||
if action['name'] == 'Menuitem':
|
||||
raise osv.except_osv('Error !',
|
||||
'You do not have the permission to perform this operation !!!')
|
||||
raise osv.except_osv('Error!',
|
||||
'You do not have the permission to perform this operation!!!')
|
||||
continue
|
||||
# keep only the first action registered for each action name
|
||||
results[action['name']] = (action['id'], action['name'], action_def)
|
||||
|
|
|
@ -55,7 +55,7 @@ class base_module_import(osv.osv_memory):
|
|||
try:
|
||||
file_data = zipfile.ZipFile(fp, 'r')
|
||||
except zipfile.BadZipfile:
|
||||
raise osv.except_osv(_('Error !'), _('File is not a zip file!'))
|
||||
raise osv.except_osv(_('Error!'), _('File is not a zip file!'))
|
||||
init_file_name = sorted(file_data.namelist())[0]
|
||||
module_name = os.path.split(init_file_name)[0]
|
||||
|
||||
|
@ -63,8 +63,8 @@ class base_module_import(osv.osv_memory):
|
|||
try:
|
||||
zip_file = open(file_path, 'wb')
|
||||
except IOError:
|
||||
raise osv.except_osv(_('Error !'),
|
||||
_('Can not create the module file: %s !') % \
|
||||
raise osv.except_osv(_('Error!'),
|
||||
_('Can not create the module file: %s!') % \
|
||||
(file_path,) )
|
||||
zip_file.write(zip_data)
|
||||
zip_file.close()
|
||||
|
|
|
@ -81,7 +81,7 @@ class base_module_upgrade(osv.osv_memory):
|
|||
(tuple(ids), ('uninstalled',)))
|
||||
unmet_packages = [x[0] for x in cr.fetchall()]
|
||||
if unmet_packages:
|
||||
raise osv.except_osv(_('Unmet dependency !'),
|
||||
raise osv.except_osv(_('Unmet Dependency!'),
|
||||
_('Following modules are not installed or unknown: %s') % ('\n\n' + '\n'.join(unmet_packages)))
|
||||
|
||||
ir_module.download(cr, uid, ids, context=context)
|
||||
|
|
|
@ -182,11 +182,11 @@ class lang(osv.osv):
|
|||
for language in languages:
|
||||
ctx_lang = context.get('lang')
|
||||
if language['code']=='en_US':
|
||||
raise osv.except_osv(_('User Error'), _("Base Language 'en_US' can not be deleted !"))
|
||||
raise osv.except_osv(_('User Error'), _("Base Language 'en_US' can not be deleted!"))
|
||||
if ctx_lang and (language['code']==ctx_lang):
|
||||
raise osv.except_osv(_('User Error'), _("You cannot delete the language which is User's Preferred Language !"))
|
||||
raise osv.except_osv(_('User Error'), _("You cannot delete the language which is User's Preferred Language!"))
|
||||
if language['active']:
|
||||
raise osv.except_osv(_('User Error'), _("You cannot delete the language which is Active !\nPlease de-activate the language first."))
|
||||
raise osv.except_osv(_('User Error'), _("You cannot delete the language which is Active!\nPlease de-activate the language first."))
|
||||
trans_obj = self.pool.get('ir.translation')
|
||||
trans_ids = trans_obj.search(cr, uid, [('lang','=',language['code'])], context=context)
|
||||
trans_obj.unlink(cr, uid, trans_ids, context=context)
|
||||
|
|
|
@ -446,7 +446,7 @@ class res_partner(osv.osv, format_address):
|
|||
commercial_fields = self._commercial_fields(cr, uid, context=context)
|
||||
sync_vals = self._update_fields_values(cr, uid, partner.commercial_partner_id,
|
||||
commercial_fields, context=context)
|
||||
return self.write(cr, uid, partner.id, sync_vals, context=context)
|
||||
partner.write(sync_vals)
|
||||
|
||||
def _commercial_sync_to_children(self, cr, uid, partner, context=None):
|
||||
""" Handle sync of commercial fields to descendants """
|
||||
|
@ -472,7 +472,7 @@ class res_partner(osv.osv, format_address):
|
|||
use_parent_address=partner.use_parent_address,
|
||||
parent_id=partner.parent_id.id,
|
||||
context=context).get('value', {})
|
||||
self.update_address(cr, uid, partner.id, onchange_vals, context=context)
|
||||
partner.update_address(onchange_vals)
|
||||
|
||||
# 2. To DOWNSTREAM: sync children
|
||||
if partner.child_ids:
|
||||
|
@ -575,7 +575,7 @@ class res_partner(osv.osv, format_address):
|
|||
context = {}
|
||||
name, email = self._parse_partner_name(name, context=context)
|
||||
if context.get('force_email') and not email:
|
||||
raise osv.except_osv(_('Warning'), _("Couldn't create contact without email address !"))
|
||||
raise osv.except_osv(_('Warning'), _("Couldn't create contact without email address!"))
|
||||
if not name and email:
|
||||
name = email
|
||||
rec_id = self.create(cr, uid, {self._rec_name: name or email, 'email': email or False}, context=context)
|
||||
|
|
Loading…
Reference in New Issue