How do i archive a model in Odoo marking records in a model as without permanently deleting them?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
Include the active field in the model definition if it's not already present.
active = fields.Boolean(string="Active", default=True)
Add a filter to show archived records in the search view if required.
<record id="view_my_model_search" model="ir.ui.view"> <field name="name">my.model.search</field> <field name="model">my.model</field> <field name="arch" type="xml"> <search> <filter string="Archived" domain="[('active', '=', False)]"/> </search> </field> </record>
Regards, NIkhil T Amzsys
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
2
mar. 25
|
721 | ||
|
0
ian. 25
|
486 | ||
|
1
nov. 24
|
824 | ||
Supprimer app créée avec studio app
Rezolvat
|
|
3
mai 25
|
155 | |
|
1
apr. 25
|
660 |