コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7957 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
5
8月 24
2449
2
12月 23
14560
0
10月 23
33
3
10月 23
788
1
10月 23
569