diff --git a/addons/event/event.py b/addons/event/event.py
index 8d7feeb8283..83da211ed6d 100644
--- a/addons/event/event.py
+++ b/addons/event/event.py
@@ -53,7 +53,7 @@ class event_event(models.Model):
return [(0, 0, {
'interval_unit': 'now',
'interval_type': 'after_sub',
- 'template_id': self.env['ir.model.data'].xmlid_to_res_id('event.event_subscription')
+ 'template_id': self.env.ref('event.event_subscription')
})]
# Seats and computation
@@ -66,7 +66,6 @@ class event_event(models.Model):
'Available Seat', required=True, default='unlimited')
seats_min = fields.Integer(
string='Minimum Reserved Seats', oldname='register_min',
- readonly=True, states={'draft': [('readonly', False)]},
help="You can for each event define a minimum registration level. If you do not enough registrations you are not able to confirm your event. (put 0 to ignore this rule )")
seats_reserved = fields.Integer(
oldname='register_current', string='Reserved Seats',
diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml
index 11550c85787..ff94c38525f 100644
--- a/addons/event/event_view.xml
+++ b/addons/event/event_view.xml
@@ -46,7 +46,7 @@
formAttendeestree,form,calendar,graph
- {'search_default_event_id': active_id, 'default_event_id': active_id}
+ {'search_default_event_id': active_id, 'default_event_id': active_id, 'search_default_not_cancelled': 1}
@@ -95,13 +95,13 @@
-
+
-
+
@@ -369,6 +369,7 @@
+
diff --git a/addons/event/res_config.py b/addons/event/res_config.py
index 6686f495920..9f31c73dc41 100644
--- a/addons/event/res_config.py
+++ b/addons/event/res_config.py
@@ -11,8 +11,16 @@ class event_config_settings(osv.TransientModel):
help='Install the event_sale module'),
'module_website_event_track': fields.boolean(
'Organize few days event with track, full agenda, own menu in website'),
+ 'module_website_event_questions': fields.boolean(
+ 'Ask questions to online subscribers',
+ help='Install the website_event_questions module',
+ implied_group='event.group_website_event_questions'),
'auto_confirmation': fields.boolean(
'Automate events and subscription confirmation', help='Unselect this option to manually manage draft event and draft subscription'),
+ 'group_email_scheduling': fields.boolean(
+ 'Schedule emails to attendees and subscribers',
+ help='You will be able to configure emails, and to schedule them to be automatically sent to the attendees on subscription and/or attendance',
+ implied_group='event.group_email_scheduling'),
}
def set_default_auto_confirmation(self, cr, uid, ids, context=None):
diff --git a/addons/event/res_config_view.xml b/addons/event/res_config_view.xml
index 3d2e1d545e0..8eb931e7339 100644
--- a/addons/event/res_config_view.xml
+++ b/addons/event/res_config_view.xml
@@ -19,10 +19,18 @@
+