[IMP] Improved warning messages

bzr revid: pso@tinyerp.com-20120727065557-vvhog448zrrfuibd
This commit is contained in:
pso (OpenERP) 2012-07-27 12:25:57 +05:30
parent e5da0e191b
commit bc68e4079c
4 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ class account_invoice_refund(osv.osv_memory):
if inv.state in ['draft', 'proforma2', 'cancel']:
raise osv.except_osv(_('Error !'), _('Cannot %s draft/proforma/cancel invoice.') % (mode))
if inv.reconciled and mode in ('cancel', 'modify'):
raise osv.except_osv(_('Error !'), _('Can not %s invoice which is already reconciled, invoice should be unreconciled first. You can only Refund this invoice.') % (mode))
raise osv.except_osv(_('Error !'), _('Cannot %s invoice which is already reconciled, invoice should be unreconciled first. You can only Refund this invoice.') % (mode))
if form.period.id:
period = form.period.id
else:

View File

@ -220,7 +220,7 @@ class account_analytic_account(osv.osv):
_order = 'name asc'
_constraints = [
(check_recursion, 'Error! You can not create recursive analytic accounts.', ['parent_id']),
(check_recursion, 'Error! You cannot create recursive analytic accounts.', ['parent_id']),
]
def copy(self, cr, uid, id, default=None, context=None):
@ -321,7 +321,7 @@ class account_analytic_line(osv.osv):
return True
_constraints = [
(_check_no_view, 'You can not create analytic line on view account.', ['account_id']),
(_check_no_view, 'You cannot create analytic line on view account.', ['account_id']),
]
account_analytic_line()

View File

@ -153,7 +153,7 @@ class document_directory(osv.osv):
return True
_constraints = [
(_check_recursion, 'Error! You can not create recursive Directories.', ['parent_id'])
(_check_recursion, 'Error! You cannot create recursive Directories.', ['parent_id'])
]
def __init__(self, *args, **kwargs):

View File

@ -55,7 +55,7 @@ class procurement_order(osv.osv):
for line in proc.product_id.flow_pull_ids:
if line.location_id == proc.location_id:
break
assert line, 'Line can not be False if we are on this state of the workflow'
assert line, 'Line cannot be False if we are on this state of the workflow'
origin = (proc.origin or proc.name or '').split(':')[0] +':'+line.name
picking_id = picking_obj.create(cr, uid, {
'origin': origin,