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

I am trying to use a third party module from odoo apps that inherits from calendar.event
I want the model to inherit from my own model called hms.appointment.
when restarting I got that error, noting that I don't have this field in my own model. Both models inheriting from mail thread.


How can I solve this error in a way that helps me inheriting from both models without issues?

アバター
破棄
最善の回答

Hi,

The issue is with the relation name, you must use a new relation name for the many2many field in your model.

Here is how to fix your code:

categ_ids = fields.Many2many('calendar.event.type', 'meeting_categ_rel', 'event_id', 'type_id', 'Tags')


Hope it helps



アバター
破棄
関連投稿 返信 ビュー 活動
0
6月 25
847
0
4月 19
3340
1
2月 16
6862
1
2月 16
8397
0
3月 15
4446