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

Module: ITA - Documento di trasporto

Entity: stock.delivery.note.line

Compute Method: _compute_amount

Inputs Method Outputs
for sdnl in self:
            price = sdnl.price_unit * (100.0 - sdnl.discount or 0.0) / 100.0

            taxed_amount_data = sdnl._get_taxed_amount()

            sdnl.untaxed_amount = taxed_amount_data.get("total_excluded", price)
            sdnl.amount = taxed_amount_data.get("total_included", price)

Back to entity