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

Module: Sale Blanket Orders

Entity: sale.order

Compute Method: _compute_disable_adding_lines

Inputs Method Outputs
self.disable_adding_lines = False
if self.env.user.has_group(
            "sale_blanket_order.blanket_orders_disable_adding_lines"
        ):
            for order in self:
                order.disable_adding_lines = order.blanket_order_id

Back to entity