Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Subscription management

Entity: sale.subscription.line

Compute Method: _compute_tax_ids

Inputs Method Outputs
for line in self:
            fpos = (
                line.sale_subscription_id.fiscal_position_id
                or line.sale_subscription_id.fiscal_position_id._get_fiscal_position(
                    line.sale_subscription_id.partner_id
                )
            )
            # If company_id is set, always filter taxes by the company
            taxes = line.product_id.taxes_id.filtered(
                lambda t: t.company_id == self.env.company
            )
            line.tax_ids = fpos.map_tax(taxes)

Back to entity