[FIX] website_event: Duplicating event with a menu

When duplicating an event.event record with a menu_id, the duplicated
event had also a menu_id pointing to the first record.

opw:813270
This commit is contained in:
Goffin Simon
2018-02-20 09:21:54 +01:00
parent de62e33618
commit 1a8993e0cb
+1 -1
View File
@@ -28,7 +28,7 @@ class Event(models.Model):
show_menu = fields.Boolean('Dedicated Menu', compute='_get_show_menu', inverse='_set_show_menu',
help="Creates menus Introduction, Location and Register on the page "
" of the event on the website.", store=True)
menu_id = fields.Many2one('website.menu', 'Event Menu')
menu_id = fields.Many2one('website.menu', 'Event Menu', copy=False)
def _compute_is_participating(self):
# we don't allow public user to see participating label