跳至内容
菜单
此问题已终结
2 回复
987 查看

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?

形象
丢弃