Invoice Partner credit limit exceeded. The Customer or Invoice Address has a credit limit. This sale order, or the customer has an outstanding balance that, exceeds their credit limit. 50 sale.order sale partner = sale.partner_invoice_id.commercial_partner_id partner_balance = partner.credit + sale.amount_total if partner.credit_limit and partner.credit_limit <= partner_balance: failed = True sale