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_total_price_incl
| Inputs | Method | Outputs |
|---|---|---|
|
+ for ticket in self: + ticket_price_incl = 0 + if ticket.product_id and ticket.price: + ticket_tax_ids = ticket.product_id.taxes_id.filtered(lambda r: r.company_id == ticket.event_id.company_id) + ticket_prices = ticket_tax_ids.compute_all(ticket.price, ticket.company_id.currency_id, 1.0, product=ticket.product_id) + ticket_price_incl = ticket_prices['total_included'] + linked_products_price_taxinc = 0 + for product in ticket.additional_product_ids: + tax_ids = product.taxes_id.filtered(lambda r: r.company_id == ticket.event_id.company_id) + prices = tax_ids.compute_all(product.lst_price, ticket.company_id.currency_id or product.currency_id, 1.0, product=product) + linked_products_price_taxinc += prices['total_included'] + ticket.total_price_incl = ticket_price_incl + linked_products_price_taxinc |
|
