[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) <jol@odoo.com>
This commit is contained in:
committed by
John Laterre (jol)
parent
46835d5a85
commit
608faa7d6e
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user