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

Hi, 

I use odoo studio to create my app. I'm trying to know possibility to add archive, unarchive field in user interface does it possible?

아바타
취소
베스트 답변

Hi,

If you are creating new model using studio, you can enable the Archiving option from the suggestion box shown by odoo, see the image: https://ibb.co/ZW2j3Fk

If you forget to do this initially, you can go to settings -> technical -> database structure -> fields, and add a new field named x_active in your model of type boolean and then using the studio add this field to the form and then set the default value as True. Now you will have the Archive and Unarchive option available for the model.


To do this from code, see: https://www.youtube.com/watch?v=aSs0aKsbUqo

Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
1479
2
3월 25
1695
0
2월 25
1334
0
2월 25
1561
0
2월 25
1463