From bc68e4079cd14f100330c55c074cfb93f3538cd9 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Fri, 27 Jul 2012 12:25:57 +0530 Subject: [PATCH] [IMP] Improved warning messages bzr revid: pso@tinyerp.com-20120727065557-vvhog448zrrfuibd --- addons/account/wizard/account_invoice_refund.py | 2 +- addons/analytic/analytic.py | 4 ++-- addons/document/document_directory.py | 2 +- addons/stock_location/procurement_pull.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index b593864aef4..96eb0e6a944 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -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: diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py index af8b1615864..6a2d8c07121 100644 --- a/addons/analytic/analytic.py +++ b/addons/analytic/analytic.py @@ -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() diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index 2e68916e7ab..4afb5a0b121 100644 --- a/addons/document/document_directory.py +++ b/addons/document/document_directory.py @@ -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): diff --git a/addons/stock_location/procurement_pull.py b/addons/stock_location/procurement_pull.py index ca397f7fa2d..5482669f543 100644 --- a/addons/stock_location/procurement_pull.py +++ b/addons/stock_location/procurement_pull.py @@ -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,