mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] removed unnecessary str() call
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user