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.line

Compute Method: _compute_l10n_in_withhold_tax_amount

Inputs Method Outputs
  • currency_id
  • price_total
  • price_subtotal
withholding_lines = self.filtered('move_id.l10n_in_is_withholding')
(self - withholding_lines).l10n_in_withhold_tax_amount = False
for line in withholding_lines:
            line.l10n_in_withhold_tax_amount = line.currency_id.round(abs(line.price_total - line.price_subtotal))

Back to entity