Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1050 Ansichten

Hello All,

We're using self hosted Odoo 18.0 Community edition to manage event for our members club.

We want to sell tickets to events through the system but we want to limit the registration to 2 tickets per user.

Currently the system gives the users option to choose between 0-9 tickets.

Thanks a lot

Avatar
Verwerfen
Beste Antwort

it is a bit " brutal and crude" but it works. 

open the registration pop-up, 

open the HTML editing mode

go into the "modal for ticket registration" section

the line where the maxnumber of seats should be line 50

 in the "range( ...) zap "3" as the maximum, being the maximum the number of choices (0,1,2)

<t t-foreach="range(0, 2)" t-as="nb">

Avatar
Verwerfen

It really works. Fantastic and even with the Online + Studio Version.
Thanks a lot! It was a main requirement for my Customer.
When multiple Seats can be booked it would led to Companys, who buys all Exam Seats and sell it to their Students for more Money.

Beste Antwort

I’m also looking for a solution. Is this functionality available out of the box with Odoo 18.0?

Avatar
Verwerfen