[IMP] stock: Improve the error message of createinvoice
authorsbh (Open ERP) <sbh@tinyerp.com>
Wed, 1 Sep 2010 06:16:04 +0000 (11:46 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Wed, 1 Sep 2010 06:16:04 +0000 (11:46 +0530)
bzr revid: sbh@tinyerp.com-20100901061604-zpz0lj11wr2uok78

addons/stock/wizard/stock_invoice_onshipping.py

index b869278..f931e57 100644 (file)
@@ -53,7 +53,7 @@ class stock_invoice_onshipping(osv.osv_memory):
         if pick.invoice_state == 'invoiced':
             raise osv.except_osv(_('UserError'), _('Invoice is already created.'))
         if pick.invoice_state == 'none':
-            raise osv.except_osv(_('UserError'), _('Invoice cannot be created from Picking.'))
+            raise osv.except_osv(_('UserError'), _('This picking does not require any invoicing.'))
         if pick.move_lines:
             usage = pick.move_lines[0].location_id.usage