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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- 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
6月 25
|
1825 | ||
|
1
6月 25
|
729 | ||
|
2
3月 25
|
2127 | ||
|
0
1月 25
|
1430 | ||
|
4
8月 25
|
1194 |