Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1437 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 22
2457
Adding static text into form view แก้ไขแล้ว
1
มี.ค. 24
3123
1
ก.พ. 24
3486
2
ก.ย. 22
2191
How do I check for overlapping dates? แก้ไขแล้ว
4
ก.ย. 20
12782