From aca91877a53741bce5b29daa522099d431546744 Mon Sep 17 00:00:00 2001 From: Martin Maes Date: Thu, 9 Mar 2023 10:04:49 +0000 Subject: [PATCH] [FIX] repair: din5008 repair printing tracebak This commit fix a traceback when printing the repair quotation using the DIN 5008 repair module. The field updated was not the correct one task id : 3178931 closes odoo/odoo#115454 X-original-commit: 008cd881abcc9856de8bd7a7a8a5382fc31dc272 Signed-off-by: Arnold Moyaux (arm) --- addons/l10n_din5008_repair/models/repair.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_din5008_repair/models/repair.py b/addons/l10n_din5008_repair/models/repair.py index cbd9d18b14b..7b13f927d79 100644 --- a/addons/l10n_din5008_repair/models/repair.py +++ b/addons/l10n_din5008_repair/models/repair.py @@ -22,6 +22,6 @@ class RepairOrder(models.Model): def _compute_l10n_din5008_document_title(self): for record in self: if record.state == 'draft': - record.l10n_de_document_title = _("Repair Quotation") + record.l10n_din5008_document_title = _("Repair Quotation") else: - record.l10n_de_document_title = _("Repair Order") + record.l10n_din5008_document_title = _("Repair Order")