[IMP] Improved warning messages for POS module

bzr revid: pso@tinyerp.com-20120725103449-iyhg19xu0m8ev0sk
This commit is contained in:
Saurang Suthar(OpenERP) 2012-07-25 16:04:49 +05:30 committed by pso (OpenERP)
parent d3f30baa81
commit e9f73afd66
3 changed files with 11 additions and 11 deletions

View File

@ -496,7 +496,7 @@ msgstr ""
#. module: point_of_sale
#: code:addons/point_of_sale/wizard/pos_box_entries.py:105
#, python-format
msgid "Please check that income account is set to %s"
msgid "Please check that income account is set to %s."
msgstr ""
#. module: point_of_sale
@ -1146,7 +1146,7 @@ msgstr ""
#, python-format
msgid ""
"There is no receivable account defined to make payment for the partner: \"%s"
"\" (id:%d)"
"\" (id:%d)."
msgstr ""
#. module: point_of_sale
@ -1201,7 +1201,7 @@ msgstr ""
#. module: point_of_sale
#: code:addons/point_of_sale/point_of_sale.py:282
#, python-format
msgid "There is no receivable account defined to make payment"
msgid "There is no receivable account defined to make payment."
msgstr ""
#. module: point_of_sale
@ -1671,7 +1671,7 @@ msgstr ""
#. module: point_of_sale
#: help:pos.order,user_id:0
msgid ""
"Person who uses the the cash register. It could be a reliever, a student or "
"Person who uses the the cash register. It can be a reliever, a student or "
"an interim employee."
msgstr ""
@ -1852,7 +1852,7 @@ msgstr ""
#. module: point_of_sale
#: code:addons/point_of_sale/point_of_sale.py:472
#, python-format
msgid "There is no income account defined for this product: \"%s\" (id:%d)"
msgid "There is no income account defined for this product: \"%s\" (id:%d)."
msgstr ""
#. module: point_of_sale
@ -2707,7 +2707,7 @@ msgstr ""
#. openerp-web
#: /home/odo/repositories/addons/trunk/point_of_sale/static/src/xml/pos.xml:145
msgid ""
"There are pending operations that could not be saved into the database, are "
"There are pending operations that cannot be saved into the database, are "
"you sure you want to exit?"
msgstr ""

View File

@ -674,9 +674,9 @@ class pos_order(osv.osv):
if not args['account_id']:
if not args['partner_id']:
msg = _('There is no receivable account defined to make payment')
msg = _('There is no receivable account defined to make payment.')
else:
msg = _('There is no receivable account defined to make payment for the partner: "%s" (id:%d)') % (order.partner_id.name, order.partner_id.id,)
msg = _('There is no receivable account defined to make payment for the partner: "%s" (id:%d).') % (order.partner_id.name, order.partner_id.id,)
raise osv.except_osv(_('Configuration Error !'), msg)
context.pop('pos_session_id', False)
@ -759,7 +759,7 @@ class pos_order(osv.osv):
continue
if not order.partner_id:
raise osv.except_osv(_('Error'), _('Please provide a partner for the sale.'))
raise osv.except_osv(_('Error!'), _('Please provide a partner for the sale.'))
acc = order.partner_id.property_account_receivable.id
inv = {
@ -945,7 +945,7 @@ class pos_order(osv.osv):
income_account = line.product_id.categ_id.property_account_income_categ.id
else:
raise osv.except_osv(_('Error !'), _('There is no income '\
'account defined for this product: "%s" (id:%d)') \
'account defined for this product: "%s" (id:%d).') \
% (line.product_id.name, line.product_id.id, ))
# Empty the tax list as long as there is no tax code:

View File

@ -120,7 +120,7 @@ class pos_box_entries(osv.osv_memory):
product = product_obj.browse(cr, uid, int(data['product_id']))
acc_id = product.property_account_income or product.categ_id.property_account_income_categ
if not acc_id:
raise osv.except_osv(_('Error !'), _('Please check that income account is set to %s')%(product_obj.browse(cr, uid, data['product_id']).name))
raise osv.except_osv(_('Error !'), _('Please check that income account is set to %s.')%(product_obj.browse(cr, uid, data['product_id']).name))
if statement_id:
statement_id = statement_id[0]
if not statement_id: