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

Module: ITA - Documento di trasporto

Entity: stock.delivery.note

Compute Method: _compute_lines_have_customer_ref

Inputs Method Outputs
for sdn in self:
            sdn.lines_have_customer_ref = (
                sdn.company_id.display_ref_customer_dn_report
                and any(line.sale_order_client_ref for line in sdn.line_ids)
            )

Back to entity