Skip to content
Snippets Groups Projects
Commit 4ef326de authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] website_slides: fix wrong comodel name in many2many


Channels uses tags allowing to categorize and filter content. For that
purpose a m2m exists between channels (slide.channel) and tags (slide.channel
.tag). The 2many relationship from tags to channels holds however a wrong
comodel name. It has no impact on code since relationship table is
correctly defined and current code does not use the channel_ids fields
from tags.

closes odoo/odoo#42244

X-original-commit: 46c3ac94485292c59fdfe4b21a8e32eef9d1f998
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 0090a3c9
Branches
Tags
No related merge requests found
......@@ -29,4 +29,4 @@ class SlideChannelTag(models.Model):
group_sequence = fields.Integer(
'Group sequence', related='group_id.sequence',
index=True, readonly=True, store=True)
channel_ids = fields.Many2many('slide.channel.tag', 'slide_channel_tag_rel', 'tag_id', 'channel_id', string='Channels')
channel_ids = fields.Many2many('slide.channel', 'slide_channel_tag_rel', 'tag_id', 'channel_id', string='Channels')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment