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,
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
0
thg 6 26
|
1647 | |||
|
Custom popup
Đã xử lý
|
2
thg 3 26
|
1951 | ||
|
Menu's with different default filter
Đã xử lý
|
1
thg 12 25
|
4138 | ||
|
1
thg 12 25
|
2234 | |||
|
1
thg 12 25
|
1876 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.