[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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user