Passa al contenuto
Menu
La domanda è stata contrassegnata
1 Rispondi
1646 Visualizzazioni

In Odoo Studio, when a reservation module is created, how can I prevent that the same place is reserved by two different requests on the same date?

Avatar
Abbandona
Risposta migliore

Hi,

You can create an automated action in the database, that is getting triggered on writing or creating record in this model and you can raise warning if duplicates are found.


Check whether base_automation module is installed in the database, if not install it, then keeping the developer mode activated, navigate to Automated Actions menu under the settings and create a new record here, select triggered on Create & Update and execute a python code, that check and raises the warning.

Thanks

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 22
2675
1
mar 24
3400
1
feb 24
3829
2
set 22
2438
4
set 20
13154