Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Sales Timesheet
Entity: project.task
Compute Method: _compute_last_sol_of_customer
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ sol_per_domain = dict() + for task in self: + domain = task._get_last_sol_of_customer_domain() + if not domain: + task.last_sol_of_customer = False + continue + domain_str = str(domain) + if domain_str not in sol_per_domain: + sol_per_domain[domain_str] = self.env['sale.order.line'].search(domain, limit=1) + task.last_sol_of_customer = sol_per_domain[domain_str] |
|
