diff options
| author | Nasreddin Boulif <bon@odoo.com> | 2020-06-10 10:21:19 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-06-10 14:55:48 +0000 |
| commit | 885437ee217b135055bdea6014fe1973c03ed9ca (patch) | |
| tree | 9a7b0f5c6bd28065f41f7d901bbda45b600cffa5 /addons/event/models | |
| parent | d169b5b509ac4d8d935bb00785744fcfc11d92ca (diff) | |
[IMP] event: add payment status in barcode / attendee kanban view
PURPOSE
Introduce a clearer way of handling registrations for multiple events occurring
at the same time and place by
* improve attendess kanban view;
* introducing a Registration Desk menu item;
SPECIFICATIONS
Introduce a computed "payment_status" selection field, allowing to display
status of a registration, based on its SO and ``is_paid```field. It is better
fro UX and display. It is not stored as currently stored fields are sufficient
for current requirement.
Add it to the kanban view.
Prepare barcode improvements by improving _get_registration_summary returned
data dict, adding some information to display in event_barcode. Reorganize
registrations actions, and prepare a generic one leading to attendees kanban
view for registration desk.
LINKS
Task ID #2214290
Community PR odoo/odoo#47511
Enterprise PR odoo/enterprise#9190
Diffstat (limited to 'addons/event/models')
| -rw-r--r-- | addons/event/models/event_registration.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/event/models/event_registration.py b/addons/event/models/event_registration.py index d1cadb4c8c5..6425f2cc065 100644 --- a/addons/event/models/event_registration.py +++ b/addons/event/models/event_registration.py @@ -268,8 +268,10 @@ class EventRegistration(models.Model): self.ensure_one() return { 'id': self.id, + 'name': self.name, 'partner_id': self.partner_id.id, 'ticket_name': self.event_ticket_id.name or _('None'), - 'name': self.name, - 'event_name': self.event_id.name, + 'event_id': self.event_id.id, + 'event_display_name': self.event_id.display_name, + 'company_name': self.event_id.company_id and self.event_id.company_id.name or False, } |
