Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3633 Prikazi

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?

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 25
1259
2
mar. 25
1511
0
feb. 25
1163
0
feb. 25
1335
0
feb. 25
1281