[FIX] website_event: Duplicating event with a menu

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

opw:813270
This commit is contained in:
Goffin Simon
2018-02-13 17:19:17 +01:00
parent 0401a7349e
commit 33e7c8d60c
+1 -1
View File
@@ -32,7 +32,7 @@ class Event(models.Model):
website_menu = fields.Boolean(
'Dedicated Menu', compute='_compute_website_menu', inverse='_set_website_menu',
help="Creates menus Introduction, Location and Register on the page "
" of the event on the website.", store=True)
" of the event on the website.", store=True, copy=False)
menu_id = fields.Many2one('website.menu', 'Event Menu')
def _compute_is_participating(self):