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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Mar 25
|
675 | ||
|
0
Jan 25
|
459 | ||
|
1
Nov 24
|
799 | ||
Blank element blocks when dragging to website
Diselesaikan
|
|
1
Apr 25
|
637 | |
Odoo docs Chapter 12: Inheritance
Diselesaikan
|
|
1
Apr 25
|
206 |