How to hide the registration form on a website event page

So we built a module
July 24, 2016 by
How to hide the registration form on a website event page
Yoshi Tashiro (QRTL)

What was bothering us


Odoo has a feature for announcing events, seminars and the like, on a website. It is useful, but it assumes registration will happen in Odoo, so as standard the registration form is always shown on the event page.

The event page as it comes as standard, with the registration form always shown

That may be fine if you are always calling for registrations, but there are cases where you only want to announce something. A customer asked us for the registration form not to be shown in that situation.

What we did


We put together a module that lets you choose, in the back-end event form view, whether the registration form is shown.

Website Event Hide Registration

Installing the module adds a field called “Show Registration Section” to the event form view.

The “Show Registration Section” field added to the event form view

Leave the field unticked and the registration form no longer appears on the website's event page.

The event page with the field left unticked, showing no registration form

In closing


Odoo's website features have not been around long, and there is still a fair amount the standard feature set does not cover — but it is open source and easy to extend, which helps.

The module we built, Website Event Hide Registration, is open source as ever, so anyone with the same need should feel free to use it.

If you like solving problems

If you want to use open source to move companies' DX forward for real,
why not do it at Quartile?

How to hide the registration form on a website event page
Yoshi Tashiro (QRTL) July 24, 2016
Archive