Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Expenses
Entity: product.template
Compute Method: _compute_can_be_expensed
| Inputs | Method | Outputs |
|---|---|---|
|
|
- self.filtered(lambda p: p.type not in ['consu', 'service']).update({'can_be_expensed': False}) + self.filtered(lambda p: p.type not in ['consu', 'service'] or not p.purchase_ok).update({'can_be_expensed': False}) |
|
