コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1036 ビュー

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?

アバター
破棄