mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Fix exclamation points
This commit is contained in:
@@ -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.')
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user