วันพุธที่ 18 มิถุนายน พ.ศ. 2557

OpenERP : Constraint Error You can not have two users with the same login !

หลังจาก Uninstall Module ก็เจอหลายเหตุการณ์จริงๆ แก้ไขเรื่อง ClientWidget is null ไปแล้วก็มาเจอว่าไม่สามารถ Install บาง Module กลับไปได้ มันจะฟ้องเราว่า มี User 2 คน login อยู่ในเวลาเดียวกัน

วิธีแก้ไข : ให้เข้าไปที่ pgAdmin จากนั้น connect ไปที่ database ของเรา

ใช้ sql : select * from res_user;

จากนั้นกด F5


ให้ทำการลบ user ที่ระบบสร้างขึ้นเองครับ

delete from res_users
where login = 'portaltemplate';

จากนั้นให้ทำการ login เข้าใช้งาน OpenERP ใหม่ แล้วทำการไปแก้ไขการ Re-Install ใน Setting อีกที เท่านี้ Error : Constraint Error  You can not have two users with the same login ! ก็จะหมดไปครับ

ไม่มีความคิดเห็น: