[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) <arm@odoo.com>
This commit is contained in:
Martin Maes
2023-03-17 23:24:11 +01:00
parent 1efa19478c
commit aca91877a5
+2 -2
View File
@@ -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")