diff --git a/addons/event/board_association_view.xml b/addons/event/board_association_view.xml index 02d45f03dc1..18afb4a0f97 100644 --- a/addons/event/board_association_view.xml +++ b/addons/event/board_association_view.xml @@ -21,7 +21,7 @@ Events Filling Status report.event.registration form - [('state','not in',('cancel','done'))] + [('event_state','not in',('cancel','done'))] graph,tree diff --git a/addons/event/event.py b/addons/event/event.py index ffda827614e..1aa2a94d802 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -203,7 +203,7 @@ class event_event(osv.osv): return res _columns = { - 'name': fields.char('Summary', size=64, required=True, translate=True, readonly=False, states={'done': [('readonly', True)]}), + 'name': fields.char('Origin', size=64, required=True, translate=True, readonly=False, states={'done': [('readonly', True)]}), 'user_id': fields.many2one('res.users', 'Responsible User', readonly=False, states={'done': [('readonly', True)]}), 'parent_id': fields.many2one('event.event', 'Parent Event', readonly=False, states={'done': [('readonly', True)]}), 'section_id': fields.many2one('crm.case.section', 'Sale Team', readonly=False, states={'done': [('readonly', True)]}), @@ -298,7 +298,7 @@ class event_registration(osv.osv): _columns = { 'id': fields.integer('ID'), - 'name': fields.char('Summary', size=124, readonly=True, states={'draft': [('readonly', False)]}), + 'name': fields.char('Origin', size=124, readonly=True, states={'draft': [('readonly', False)]}), 'email_cc': fields.text('CC', size=252, readonly=False, states={'done': [('readonly', True)]}, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"), 'nb_register': fields.integer('Quantity', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Number of Registrations or Tickets"), 'event_id': fields.many2one('event.event', 'Event', required=True, readonly=True, states={'draft': [('readonly', False)]}), diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index 927eaad0dad..9eea7cd611e 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -315,7 +315,8 @@
- + + @@ -323,13 +324,12 @@ - - + - + - + @@ -337,8 +337,8 @@ - - + + @@ -348,7 +348,10 @@ + + + @@ -396,6 +399,9 @@ name="%(mail.action_email_compose_message_wizard)d" icon="terp-mail-message-new" type="action"/> + + +
diff --git a/addons/event/report/report_event_registration.py b/addons/event/report/report_event_registration.py index cfdbfcf70c4..75fd7c43b45 100644 --- a/addons/event/report/report_event_registration.py +++ b/addons/event/report/report_event_registration.py @@ -41,7 +41,7 @@ class report_event_registration(osv.osv): 'confirm_state': fields.integer(' # No of Confirmed Registrations', size=20), 'register_max': fields.integer('Maximum Registrations'), 'nbevent': fields.integer('Number Of Events'), - 'type': fields.many2one('event.type', 'Event Type'), + 'event_type': fields.many2one('event.type', 'Event Type'), 'registration_state': fields.selection([('draft', 'Draft'), ('confirm', 'Confirmed'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, required=True), 'event_state': fields.selection([('draft', 'Draft'), ('confirm', 'Confirmed'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, required=True), 'user_id': fields.many2one('res.users', 'Responsible', readonly=True), @@ -63,7 +63,6 @@ class report_event_registration(osv.osv): CREATE OR REPLACE view report_event_registration AS ( SELECT event_id, - r.id, e.date_begin AS event_date, e.user_id AS user_id, @@ -82,7 +81,7 @@ class report_event_registration(osv.osv): CASE WHEN r.state IN ('done') THEN r.price_subtotal ELSE 0 END AS total, - e.type AS type, + e.type AS event_type, r.price_subtotal, AVG(r.price_subtotal) AS average_subtotal, e.register_max AS register_max, @@ -102,18 +101,18 @@ class report_event_registration(osv.osv): r.id, registration_state, r.nb_register, - e.type, e.id, e.date_begin, e.main_speaker_id, - e.register_max, e.type, e.state,event_id, e.user_id,e.company_id,e.product_id,e.section_id, r.price_subtotal, + event_type, e.id, e.date_begin, e.main_speaker_id, + e.register_max,event_id, e.user_id,e.company_id,e.product_id,e.section_id, r.price_subtotal, e.user_id, e.section_id, + event_state, e.company_id, e.product_id, e.main_speaker_id, year, month, - e.type, - e.register_max, - e.state + e.register_max + ) """) diff --git a/addons/event/report/report_event_registration_view.xml b/addons/event/report/report_event_registration_view.xml index 5e48174c4a8..e3ff87f4f40 100644 --- a/addons/event/report/report_event_registration_view.xml +++ b/addons/event/report/report_event_registration_view.xml @@ -16,7 +16,7 @@ - + @@ -96,7 +96,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -124,7 +124,7 @@ - +