2026-10-01 11:16:50 +05:30

2 lines
257 B
Python

user = env["res.users"].search([("login", "=", "demo.student")]); student = env["education.student"].search([("id", "=", 10)]); print("USER:", user.id); print("STUDENT PORTAL USER:", student.portal_user_id.id); print("USER STUDENT_ID:", user.student_id.id)