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
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
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
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
2
8월 25
|
4301 | ||
|
|
2
6월 25
|
3623 | ||
|
|
1
6월 25
|
1622 | ||
|
|
0
1월 25
|
2228 | ||
|
|
1
11월 25
|
488 |