Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: HR - Payroll Document
Entity: hr.employee
Compute Method: _compute_payroll_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
- self.payroll_count = len( - self.env["ir.attachment"].search( - [ - ("document_type", "=", "payroll"), - ("res_model", "=", self._name), - ("res_id", "in", self.ids), - ] - ) - ) |
|
