Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7927 มุมมอง

Hi,

I have created one custom module but while saving the form I am getting error "psycopg2.ProgrammingError: relation "_unknown" does not exist ". I have mentioned all the related module in the manifest file. but still facing the same issue.

Could anyone please advise me for this.

Thanks in advance!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Check whether you have defined any many2one field or many2many field inside the same model, if yes, you might not have set the comodel for the filed.

partner_id = fields.Many2one('res.partner', string='Customer')


like this you have to define the many2one field, but you might not have specified the comodel, you might added the field like this,

partner_id = fields.Many2one(string='Customer')


Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ส.ค. 24
2392
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14512
0
ต.ค. 23
33
3
ต.ค. 23
788
1
ต.ค. 23
569