mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] Syntax error
This commit is contained in:
@@ -47,8 +47,8 @@ class AccountMoveLine(orm.Model):
|
||||
def _check_invoice_related_move(self, cr, uid, ids, context=None):
|
||||
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))
|
||||
err_msg = (_('Invoice name (id): %s (%s)') %
|
||||
(line.invoice.name, str(line.invoice.id)))
|
||||
raise osv.except_osv(
|
||||
_('Error'),
|
||||
_('You cannot do this on an entry generated by an invoice. You must '
|
||||
@@ -58,8 +58,8 @@ class AccountMoveLine(orm.Model):
|
||||
def _check_statement_related_move(self, cr, uid, ids, context=None):
|
||||
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))
|
||||
err_msg = (_('Bank statement name (id): %s (%s)') %
|
||||
(line.statement_id.name, str(line.statement_id.id)))
|
||||
raise osv.except_osv(
|
||||
_('Error'),
|
||||
_('You cannot do this on an entry generated by a bank statement. '
|
||||
|
||||
Reference in New Issue
Block a user