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

Module: Sales

Entity: sale.order.template

Compute Method: _compute_prepayment_percent

Inputs Method Outputs
for template in self:
            if (template.company_id or template.env.company).portal_confirmation_pay:
                template.prepayment_percent = (
                    template.company_id or template.env.company
                ).prepayment_percent
            else:
                template.prepayment_percent = 0.0

Back to entity