[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user