Fix exclamation points

This commit is contained in:
Sandy Carter
2015-05-14 07:27:05 -04:00
parent e202298611
commit cf781509a6
4 changed files with 7 additions and 7 deletions

View File

@@ -1898,7 +1898,7 @@ class account_bank_statement(orm.Model):
if (not st.journal_id.default_credit_account_id) \
or (not st.journal_id.default_debit_account_id):
raise orm.except_orm(
_('Configuration Error !'),
_('Configuration Error'),
_('Please verify that an account is defined in the '
'journal.')
)
@@ -1907,7 +1907,7 @@ class account_bank_statement(orm.Model):
for line in st.move_line_ids:
if line.state != 'valid':
raise orm.except_orm(
_('Error !'),
_('Error'),
_('The account entries lines are not in valid state.')
)

View File

@@ -112,12 +112,12 @@ class deposit_ticket(orm.Model):
for deposit in self.browse(cr, uid, ids, context=context):
if not deposit.journal_id.sequence_id:
raise orm.except_orm(
_('Error !'),
_('Error'),
_('Please define sequence on deposit journal')
)
if deposit.journal_id.centralisation:
raise orm.except_orm(
_('UserError'),
_('User Error'),
_('Cannot create move on centralised journal')
)
# Create the move lines first

View File

@@ -84,8 +84,8 @@ class deposit_ticket_line(orm.Model):
_(
'You cannot add any new deposit ticket line '
'manually as of this revision! '
'Please use the button \"Add Deposit '
'Items\" to add deposit ticket line!'
'Please use the button "Add Deposit '
'Items" to add deposit ticket line!'
)
)
return super(deposit_ticket_line, self).create(

View File

@@ -145,7 +145,7 @@ class account_invoice(orm.Model):
number = self.read(
cr, uid, invoice_id, ['number'], context=context)['number']
raise orm.except_orm(
_('Error !'),
_('Error'),
_("You cannot set invoice '%s' to state 'debit denied', "
'as it is still reconciled.') % number)
self.write(cr, uid, ids, {'state': 'debit_denied'}, context=context)