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

Module: Indian - Accounting

Entity: account.move

Compute Method: _compute_l10n_in_total_withholding_amount

Inputs Method Outputs
for move in self:
            if self.env.company.l10n_in_tds_feature:
                move.l10n_in_total_withholding_amount = sum(
                    move.l10n_in_withhold_move_ids.filtered(
                        lambda m: m.state == 'posted'
                    ).l10n_in_withholding_line_ids.mapped('l10n_in_withhold_tax_amount')
                )
            else:
                move.l10n_in_total_withholding_amount = 0.0

Back to entity