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_show_discount

Inputs Method Outputs
for sdn in self:
            sdn.show_discount = any(
                sdn.line_ids.filtered(lambda line: line.discount != 0)
            )

Back to entity