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

Module: AEAT modelo 349

Entity: l10n.es.aeat.mod349.partner_refund

Compute Method: _compute_total_operation_amount

Inputs Method Outputs
for record in self:
            rectified_amount = sum(record.mapped("refund_detail_ids.amount_untaxed"))
            rounding = self.env.user.company_id.currency_id.rounding
            record.total_operation_amount = float_round(
                record.total_origin_amount - rectified_amount,
                precision_rounding=rounding,
            )

Back to entity