Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1420 Weergaven

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?

Avatar
Annuleer
Beste antwoord

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



Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jun. 25
862
0
apr. 19
3348
1
feb. 16
6867
1
feb. 16
8399
0
mrt. 15
4447