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

Can any one explain me why OpenErp Create some default in posgresql database table while creating a new object in OpneErp module ??

In a email_template module email.template object create some default field Like.. id,create_uid,create_date,write_date explain each field with description While from Openerp trunk-Server in base module like res_users and res_partner doen't created this kind of field in posgreSql database tables my question is why and and why not ??

아바타
취소
베스트 답변

id is added automatically to every model by OpenERP.

Every database requires a unique identified and OpenERP manages this via the id field and a related sequence.

The others are created for every model where self._log_access is set to True (which it is by default).

They are required if access rules are to be implemented for the model.

  • the user who created the record (create_uid)
  • the time it was created (create_date)
  • the user who last updated the record (write_uid)
  • the time it was last updated (write_date)

If a value for self._log_access is not specified, then you can prevent them from being created if self._auto is set to False

아바타
취소
작성자

thanks Ray Carnes do u know why above fields is not used in base module for database table like res_users and res_partner as per my knowledge its default module in openerp therefore openerp doen't require this kind of fields