콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
10604 화면

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.

아바타
취소
베스트 답변

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

관련 게시물 답글 화면 활동
0
12월 19
6302
1
3월 15
6784
1
8월 23
2037
0
10월 16
4002
4
12월 23
24213