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.
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
44
Views
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.