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

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



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 25
820
0
เม.ย. 19
3338
1
ก.พ. 16
6857
1
ก.พ. 16
8390
0
มี.ค. 15
4443