Open Customer Statements code if records: action = records.open_partner_ledger()