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

Module: Philippines - Discount Privileges on Invoice

Entity: account.move

Compute Method: _compute_l10n_ph_has_discount_privilege

Inputs Method Outputs
  • invoice_line_ids
for move in self:
            move.l10n_ph_has_discount_privilege = move.is_sale_document() and any(
                line.l10n_ph_discount_privilege_id
                for line in move.invoice_line_ids
                if line.display_type == "product"
            )

Back to entity