event: - added tip - default subscription/reminder/thanks templates for registrations are now using the reply_to defined on the event - fixed check of available seats: use seats_availability field, unlimited events should never trigger the constraint - added a sequence on scheduled emails on events - config: wording improvements - various improvements in event, registration, event_mail and event_report views event_sale: - removed override of seats_max: should not depend on available seats in tickets. Indeed you may have less available places than the sum of seats for each ticket type, for example if you have 0-10 VIP and 0-20 Standard tickets for a 20-seats event. - removed a duplicated view override - added a seats_availability field on tickets, same meaning as on event. - improved event form view: registration tab is now replaced by the tickets tab when tickets are used website_event: - better management of sold-out event in the front-end, when doing registrations website_event_sale: - removed register link on the event kanban view. There is no need to to from the back-end to the front-end from the kanban view. The published button on the event form view already allows to go to the front-end view on the event - better management of sold-out event in the front-end, when doing registrations - fixed a template that was in customize and should not website_event_track: - wording improvements - small improvements in the front-end of tracks
21 lines
951 B
Python
21 lines
951 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from openerp.osv import fields, osv
|
|
|
|
class event_config_settings(osv.TransientModel):
|
|
_name='marketing.config.settings'
|
|
_inherit='marketing.config.settings'
|
|
_columns = {
|
|
'module_event_sale': fields.boolean(
|
|
'Sell events tickets',
|
|
help='Install the event_sale module'),
|
|
'module_website_event_track': fields.boolean(
|
|
'Organize few days event with track, full agenda, own menu in website'),
|
|
'auto_confirmation': fields.boolean(
|
|
'Automate events and subscription confirmation', help='Unselect this option to manually manage draft event and draft subscription'),
|
|
}
|
|
|
|
def set_default_auto_confirmation(self, cr, uid, ids, context=None):
|
|
config_value = self.browse(cr, uid, ids, context=context).auto_confirmation
|
|
self.pool.get('ir.values').set_default(cr, uid, 'marketing.config.settings', 'auto_confirmation', config_value)
|