Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: DIN 5008 - Purchase

Entity: purchase.order

Compute Method: _compute_l10n_din5008_document_title

Inputs Method Outputs
  • state
for record in self:
            if record.state in ['draft', 'sent', 'to approve']:
                record.l10n_din5008_document_title = _("Request for Quotation")
            elif record.state in ['purchase', 'done']:
                record.l10n_din5008_document_title = _("Purchase Order")
            elif record.state == 'cancel':
                record.l10n_din5008_document_title = _("Cancelled Purchase Order")

Back to entity