from odoo import api, SUPERUSER_ID
from odoo.http import request

def list_payment_methods():
    env = api.Environment(request.cr, SUPERUSER_ID, {})
    methods = env['pos.payment.method'].search([])
    print("POS Payment Methods:")
    for m in methods:
        print(f"ID: {m.id}, Name: {m.name}, Is Cash: {m.is_cash_count}, Journal: {m.journal_id.name if m.journal_id else 'None'}")

# This is just a draft, I can't run it easily without request context.
# I'll use a better approach: search in code if there's any reference to a specific payment method name.
