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

Module: Withholding Tax on Payment

Entity: account.payment

Compute Method: _compute_should_withhold_tax

View 19.0
Inputs Method Outputs
  • withholding_line_ids
+ """ Ensures that we display the line table if any withholding line has been added to the payment. """
+ for payment in self:
+             payment.should_withhold_tax = bool(payment.withholding_line_ids)
  • should_withhold_tax

Back to entity