Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
991 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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">

Imagine profil
Abandonează

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează