Skip to content

Commit f8ec309

Browse files
committed
Merge PR #360 into 14.0
Signed-off-by etobella
2 parents c61e4fa + 6172c14 commit f8ec309

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

maintenance_plan/models/maintenance_equipment.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ def _prepare_request_from_plan(self, maintenance_plan, next_maintenance_date):
8787
if not team_id:
8888
team_id = request_model._get_default_team_id()
8989

90-
description = self.name if self else maintenance_plan.name
90+
description = (
91+
self.with_context(lang=self.env.user.lang).name
92+
if self
93+
else maintenance_plan.name
94+
)
9195
kind = maintenance_plan.maintenance_kind_id.name or _("Unspecified kind")
9296
name = _("Preventive Maintenance (%s) - %s") % (kind, description)
9397

0 commit comments

Comments
 (0)