Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Events Product
Entity: event.event.ticket
Compute Method: _compute_price_reduce_taxinc
| Inputs | Method | Outputs |
|---|---|---|
|
- for event in self: - # sudo necessary here since the field is most probably accessed through the website - tax_ids = event.product_id.taxes_id.filtered(lambda r: r.company_id == event.event_id.company_id) - taxes = tax_ids.compute_all(event.price_reduce, event.event_id.company_id.currency_id, 1.0, product=event.product_id) - event.price_reduce_taxinc = taxes['total_included'] |
|
