Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
43 Views

Hello everyone, I have a custom model and I would like to archive some records, but I can’t find the option to do this. Any help would be appreciated.

Avatar
Discard

By default, the Archive/Unarchive feature in Cyllo (like in Odoo) only shows up if your model has an active field defined. The system uses that field to determine whether a record is “active” (visible) or “archived” (hidden).

To enable archiving on your custom model:
Add a boolean field called active to your model

active = fields.Boolean(default=True)

Once this field exists, the “Archive” and “Unarchive” options will automatically appear in the record’s action menu.

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!