mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[15.0][MIG] account_spread_cost_revenue
This commit is contained in:
@@ -97,7 +97,9 @@ class AccountMoveLine(models.Model):
|
||||
def _check_spread_reconcile_validity(self):
|
||||
# Improve error messages of standard Odoo
|
||||
reconciled_lines = self.filtered(lambda l: l.reconciled)
|
||||
msg_line = _("Move line: %s (%s), account code: %s\n")
|
||||
msg_line = _(
|
||||
"Move line: %(line_id)s (%(line_name)s), account code: %(account_code)s\n"
|
||||
)
|
||||
if reconciled_lines:
|
||||
msg = _("Cannot reconcile entries that are already reconciled:\n")
|
||||
for line in reconciled_lines:
|
||||
@@ -146,10 +148,9 @@ class AccountMoveLine(models.Model):
|
||||
elif len(template) > 1:
|
||||
raise UserError(
|
||||
_(
|
||||
"Too many auto spread templates (%s) matched with the "
|
||||
"invoice line, %s"
|
||||
)
|
||||
% (len(template), line.display_name)
|
||||
"Too many auto spread templates ({}) matched with the "
|
||||
"invoice line, {}"
|
||||
).format(len(template), line.display_name)
|
||||
)
|
||||
# Found auto spread template for this invoice line, create it
|
||||
wizard = self.env["account.spread.invoice.line.link.wizard"].new(
|
||||
|
||||
Reference in New Issue
Block a user