Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
999 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить

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.

Лучший ответ

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

Аватар
Отменить