From 608faa7d6ec4ad7aeb41734506b6e2a393da07c9 Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Mon, 23 Jan 2023 12:39:40 +0000 Subject: [PATCH] [FIX] l10n_de_repair: l10n_de_document_title computation before this commit, in the draft state the l10n_de_document_title field value is computed as Repair Order and in other state it is computed as Repair Quotation. after this commit, in draft state Repair Quotation and in other state Repair Order will be computed in field l10n_de_document_title closes odoo/odoo#110839 X-original-commit: 522745b8cefd771c9bea8571f8f35725e817c285 Signed-off-by: John Laterre (jol) --- 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 b2d50d5b770..cbd9d18b14b 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_din5008_document_title = _("Repair Order") + record.l10n_de_document_title = _("Repair Quotation") else: - record.l10n_din5008_document_title = _("Repair Quotation") + record.l10n_de_document_title = _("Repair Order")