Skip to content

[FW][FIX] academic: Correction in translation of year #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions academic/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1264,3 +1264,9 @@ msgstr "asignatura"
#: model:ir.model.fields,help:academic.field_res_users__disabled_person
msgid "¿Alumno/a con Dificultades de aprendizaje?"
msgstr ""

#. module: academic
#. odoo-python
#: code:addons/academic/models/academic_group.py:0
msgid "Year: %s"
msgstr ""
2 changes: 1 addition & 1 deletion academic/models/academic_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _compute_name(self):
line.level_id.name if line.level_id else None,
line.division_id.name if line.division_id else None,
line.level_id.section_id.name if line.level_id and line.level_id.section_id else None,
f"{self.env._('Year:')} {line.year}",
self.env._("Year: %s", line.year),
]
line.name = " - ".join(filter(None, name_parts))

Expand Down