Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] event: add sequence on event categories #32010

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions addons/event/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
class EventType(models.Model):
_name = 'event.type'
_description = 'Event Category'
_order = 'sequence, id'

@api.model
def _get_default_event_type_mail_ids(self):
Expand All @@ -42,6 +43,7 @@ def _get_default_event_type_mail_ids(self):
})]

name = fields.Char('Event Category', required=True, translate=True)
sequence = fields.Integer()
# registration
has_seats_limitation = fields.Boolean(
'Limited Seats', default=False)
Expand Down
1 change: 1 addition & 0 deletions addons/event/views/event_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<field name="model">event.type</field>
<field name="arch" type="xml">
<tree string="Event Category">
<field name="sequence" widget="handle"/>
fja-odoo marked this conversation as resolved.
Show resolved Hide resolved
<field name="name"/>
</tree>
</field>
Expand Down