summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-02-13 16:33:44 +0100
committerGoffin Simon <sig@odoo.com>2018-02-13 17:19:17 +0100
commit33e7c8d60c58c98d2f679b66abae5af7ef224726 (patch)
treee74248ff8998a624fe95b8d8eb55167b9cd03c58
parent0401a7349e190994d17df1b161bec5530314236b (diff)
[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
-rw-r--r--addons/website_event/models/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/models/event.py b/addons/website_event/models/event.py
index 8fab469c5c8..087b69e8499 100644
--- a/addons/website_event/models/event.py
+++ b/addons/website_event/models/event.py
@@ -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):