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

Module: Account Invoice Custom Rounding

Entity: account.move

Compute Method: _compute_tax_calculation_rounding_method

Inputs Method Outputs
  • company_id
  • company_id.tax_calculation_rounding_method
  • partner_id
  • partner_id.tax_calculation_rounding_method
for move in self:
            tax_calculation_rounding_method = (
                move.company_id.tax_calculation_rounding_method
            )
            if (
                move.is_invoice()
                and move.partner_id
                and move.partner_id.tax_calculation_rounding_method
            ):
                tax_calculation_rounding_method = (
                    move.partner_id.tax_calculation_rounding_method
                )
            move.tax_calculation_rounding_method = tax_calculation_rounding_method

Back to entity