Some user opens an edit form on a object, as long as this user doesn´t close this form I want other users to be denied to editing.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Pessimistic locking is not an option with Odoo, being quite impractical in a stateless web-based environment.
Odoo implements Optimistic Concurrency Control:
For every object, there is a virtual __last_update
field that clients can requests explicitly as part of regular read()
calls, on any model. The value is automatically inferred from the write_date
and create_date
fields that the framework maintains on any record by default. When the client later makes a write()
call on the same record, it can pass an extra context structure containing the original __last_update
value, and the system will automatically raise an error if the record has been updated in the meantime. See the _check_concurrency()
method for more details.
See http://stackoverflow.com/questions/18960668/no-concurrency-check-when-updating-records
Thank you
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 12 19
|
6313 | ||
|
1
thg 3 15
|
6791 | ||
Field editing after create a form
Đã xử lý
|
|
1
thg 8 23
|
2046 | |
|
0
thg 10 16
|
4019 | ||
|
4
thg 12 23
|
24213 |