콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
12470 화면
I would like to understand how the chatter records are generated and how they 
are related to the "owning" record.

What PostgreSQL tables & fields  are involved?
아바타
취소
베스트 답변
Chatter is stored in the mail.message model which is persisted in the mail_message table in PostgreSQL.


When I add a chatter message to a Sales Order (id=7) like this:




The following mail.message record is created:



The fields that related it back to the "owning" record are Related Document Model (the model field) and Related Document ID (the res_id field).

WARNING:

You can EASILY end up corrupting your database by getting your data into an inconsistent state when you have an incomplete understanding of the schema and do not update the data tables and/or fields and/or related tables in a way that is consistent with the way the Odoo ORM manages data. 

We do not recommend using SQL DML (CREATE, INSERT, UPDATE, DELETE) statements with Odoo databases because this bypasses the business logic defined in the Python models - there will be no "validation" that your change is consistent, valid and is supported by the logical behavior of each model record (in addition, not all fields are persisted in PostgreSQL). 

We recommend using only SQL DQL (SELECT) statements with Odoo databases.

Odoo can only provide VERY LIMITED support to Users who elect to ignore these recommendations.
아바타
취소
베스트 답변

Hello Ray, I'd like to know how can I access the mail.message records, like the one you just created on the sale order, how can I see the list of records?


Thank you.



아바타
취소
관련 게시물 답글 화면 활동
4
12월 24
30933
2
6월 19
2919
Databse schema 해결 완료
2
3월 15
9666
1
12월 24
1648
1
11월 24
2195