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_incl

View 19.0
Inputs Method Outputs
  • product_id
  • price
  • product_id.taxes_id
  • event_id
  • event_id.company_id
  • currency_id
- for event in self:
-             if event.product_id and event.price:
-                 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, event.currency_id, 1.0, product=event.product_id)
-                 event.price_incl = taxes['total_included']
-             else:
-                 event.price_incl = 0
  • price_incl

Back to entity