Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Sales - Project
Entity: sale.order
Compute Method: _compute_project_required
| Inputs | Method | Outputs |
|---|---|---|
|
+ for order in self: + order.project_required = False + if ( + all( + l.service_tracking not in ('project_only', 'task_in_project') + for l in order.order_line + ) + and any( + l.service_tracking == 'task_global_project' + and not l.task_id + and not l.product_id.project_id + for l in order.order_line + ) + ): + order.project_required = True |
|
