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_boolean_flags

Inputs Method Outputs
can_change_number = self.env.user.has_group(
            "l10n_it_delivery_note.can_change_number"
        )
show_product_information = self.env.user.has_group(
            "l10n_it_delivery_note.show_product_related_fields"
        )
for note in self:
            note.can_change_number = note.state == "draft" and can_change_number
            note.show_product_information = show_product_information

Back to entity