2
0

[FIX] account_move_name_sequence: return sequence names do not add a space between name and returns.

This commit is contained in:
Rodrigo 2022-11-24 14:13:50 +01:00
parent 86eed6c1ed
commit 2d5f794ed5

View File

@ -86,7 +86,7 @@ class AccountJournal(models.Model):
prefix = "%s%s/%%(range_year)s/" % (refund and "R" or "", code) prefix = "%s%s/%%(range_year)s/" % (refund and "R" or "", code)
seq_vals = { seq_vals = {
"name": "%s%s" "name": "%s%s"
% (vals.get("name", _("Sequence")), refund and _("Refund") + " " or ""), % (vals.get("name", _("Sequence")), refund and " " + _("Refund") or ""),
"company_id": vals.get("company_id") or self.env.company.id, "company_id": vals.get("company_id") or self.env.company.id,
"implementation": "no_gap", "implementation": "no_gap",
"prefix": prefix, "prefix": prefix,