Create Billing list code if records: action = records.action_create_billing() Register Payment list code if records: action = records.action_register_payment()