[IMP] removed unnecessary str() call

This commit is contained in:
Alexandre Fayolle
2013-01-30 11:11:33 +01:00
parent 0cdb2005ea
commit 920d6373fa

View File

@@ -48,7 +48,7 @@ class AccountMoveLine(orm.Model):
for line in self.browse(cr, uid, ids, context=context):
if line.invoice:
err_msg = (_('Invoice name (id): %s (%s)') %
(line.invoice.name, str(line.invoice.id)))
(line.invoice.name, line.invoice.id))
raise osv.except_osv(
_('Error'),
_('You cannot do this on an entry generated by an invoice. You must '
@@ -59,7 +59,7 @@ class AccountMoveLine(orm.Model):
for line in self.browse(cr, uid, ids, context=context):
if line.statement_id:
err_msg = (_('Bank statement name (id): %s (%s)') %
(line.statement_id.name, str(line.statement_id.id)))
(line.statement_id.name, line.statement_id.id))
raise osv.except_osv(
_('Error'),
_('You cannot do this on an entry generated by a bank statement. '
@@ -100,7 +100,7 @@ class AccountMoveLine(orm.Model):
if not context.get('from_parent_object', False):
self._check_invoice_related_move(cr, uid, ids, context=context)
self._check_statement_related_move(cr, uid, ids, context=context)
return super(AccountMoveLine, self).write(cr, uid, ids, vals,
return super(AccountMoveLine, self).write(cr, uid, ids, vals,
context=context, check=check, update_check=update_check)
def _check_currency_and_amount(self, cr, uid, ids, context=None):