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

Hi all,
I have a related field, and lot of data s with the field. Now i need to remove the related attribute from the field, means now i need to use the field as a normal field, but without losing the data. Is that possible ?
Note : It is a Many2one field.
Any suggestions ?

아바타
취소
베스트 답변

Hi,

You can do the above by re-writing the field and set the related attribute to '' (related='').

Eg:

field_name = fields.Many2one('your_relation', related='')

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
2
3월 15
17401
1
1월 19
3675
2
12월 24
4583
1
11월 24
3396
2
4월 23
18504